├── CMakeLists.txt ├── README.md ├── build ├── 3_class.rknn ├── 608x608.jpg ├── CMakeCache.txt ├── CMakeFiles │ ├── 3.13.4 │ │ ├── CMakeCCompiler.cmake │ │ ├── CMakeCXXCompiler.cmake │ │ ├── CMakeDetermineCompilerABI_C.bin │ │ ├── CMakeDetermineCompilerABI_CXX.bin │ │ ├── CMakeSystem.cmake │ │ ├── CompilerIdC │ │ │ ├── CMakeCCompilerId.c │ │ │ └── a.out │ │ └── CompilerIdCXX │ │ │ ├── CMakeCXXCompilerId.cpp │ │ │ └── a.out │ ├── CMakeDirectoryInformation.cmake │ ├── CMakeOutput.log │ ├── Makefile.cmake │ ├── Makefile2 │ ├── TargetDirectories.txt │ ├── cmake.check_cache │ ├── feature_tests.bin │ ├── feature_tests.c │ ├── feature_tests.cxx │ ├── progress.marks │ └── rknn_yolov5_demo.dir │ │ ├── C.includecache │ │ ├── CXX.includecache │ │ ├── DependInfo.cmake │ │ ├── build.make │ │ ├── cmake_clean.cmake │ │ ├── depend.internal │ │ ├── depend.make │ │ ├── flags.make │ │ ├── link.txt │ │ ├── progress.make │ │ └── src │ │ ├── drm_func.c.o │ │ ├── main.cc.o │ │ └── postprocess.cc.o ├── Makefile ├── cmake_install.cmake ├── out.jpg └── rknn_yolov5_demo ├── include ├── demo.h ├── demo_define.h ├── drm_func.h ├── libdrm │ ├── amdgpu_drm.h │ ├── drm.h │ ├── drm_fourcc.h │ ├── drm_mode.h │ ├── drm_sarea.h │ ├── i915_drm.h │ ├── mach64_drm.h │ ├── mga_drm.h │ ├── nouveau_drm.h │ ├── qxl_drm.h │ ├── r128_drm.h │ ├── radeon_drm.h │ ├── savage_drm.h │ ├── sis_drm.h │ ├── tegra_drm.h │ ├── vc4_drm.h │ ├── via_drm.h │ └── virtgpu_drm.h ├── opencv │ ├── cv.h │ ├── cv.hpp │ ├── cvaux.h │ ├── cvaux.hpp │ ├── cvwimage.h │ ├── cxcore.h │ ├── cxcore.hpp │ ├── cxeigen.hpp │ ├── cxmisc.h │ ├── highgui.h │ └── ml.h ├── opencv2 │ ├── aruco.hpp │ ├── aruco │ │ ├── charuco.hpp │ │ └── dictionary.hpp │ ├── bgsegm.hpp │ ├── bioinspired.hpp │ ├── bioinspired │ │ ├── bioinspired.hpp │ │ ├── retina.hpp │ │ ├── retinafasttonemapping.hpp │ │ └── transientareassegmentationmodule.hpp │ ├── calib3d.hpp │ ├── calib3d │ │ ├── calib3d.hpp │ │ └── calib3d_c.h │ ├── ccalib.hpp │ ├── ccalib │ │ ├── multicalib.hpp │ │ ├── omnidir.hpp │ │ └── randpattern.hpp │ ├── core.hpp │ ├── core │ │ ├── affine.hpp │ │ ├── base.hpp │ │ ├── bufferpool.hpp │ │ ├── core.hpp │ │ ├── core_c.h │ │ ├── cuda.hpp │ │ ├── cuda.inl.hpp │ │ ├── cuda │ │ │ ├── block.hpp │ │ │ ├── border_interpolate.hpp │ │ │ ├── color.hpp │ │ │ ├── common.hpp │ │ │ ├── datamov_utils.hpp │ │ │ ├── detail │ │ │ │ ├── color_detail.hpp │ │ │ │ ├── reduce.hpp │ │ │ │ ├── reduce_key_val.hpp │ │ │ │ ├── transform_detail.hpp │ │ │ │ ├── type_traits_detail.hpp │ │ │ │ └── vec_distance_detail.hpp │ │ │ ├── dynamic_smem.hpp │ │ │ ├── emulation.hpp │ │ │ ├── filters.hpp │ │ │ ├── funcattrib.hpp │ │ │ ├── functional.hpp │ │ │ ├── limits.hpp │ │ │ ├── reduce.hpp │ │ │ ├── saturate_cast.hpp │ │ │ ├── scan.hpp │ │ │ ├── simd_functions.hpp │ │ │ ├── transform.hpp │ │ │ ├── type_traits.hpp │ │ │ ├── utility.hpp │ │ │ ├── vec_distance.hpp │ │ │ ├── vec_math.hpp │ │ │ ├── vec_traits.hpp │ │ │ ├── warp.hpp │ │ │ ├── warp_reduce.hpp │ │ │ └── warp_shuffle.hpp │ │ ├── cuda_stream_accessor.hpp │ │ ├── cuda_types.hpp │ │ ├── cvdef.h │ │ ├── cvstd.hpp │ │ ├── cvstd.inl.hpp │ │ ├── directx.hpp │ │ ├── eigen.hpp │ │ ├── fast_math.hpp │ │ ├── hal │ │ │ ├── hal.hpp │ │ │ ├── interface.h │ │ │ ├── intrin.hpp │ │ │ ├── intrin_cpp.hpp │ │ │ ├── intrin_neon.hpp │ │ │ └── intrin_sse.hpp │ │ ├── ippasync.hpp │ │ ├── mat.hpp │ │ ├── mat.inl.hpp │ │ ├── matx.hpp │ │ ├── neon_utils.hpp │ │ ├── ocl.hpp │ │ ├── ocl_genbase.hpp │ │ ├── opengl.hpp │ │ ├── operations.hpp │ │ ├── optim.hpp │ │ ├── ovx.hpp │ │ ├── persistence.hpp │ │ ├── private.cuda.hpp │ │ ├── private.hpp │ │ ├── ptr.inl.hpp │ │ ├── saturate.hpp │ │ ├── sse_utils.hpp │ │ ├── traits.hpp │ │ ├── types.hpp │ │ ├── types_c.h │ │ ├── utility.hpp │ │ ├── va_intel.hpp │ │ ├── version.hpp │ │ └── wimage.hpp │ ├── cvconfig.h │ ├── datasets │ │ ├── ar_hmdb.hpp │ │ ├── ar_sports.hpp │ │ ├── dataset.hpp │ │ ├── fr_adience.hpp │ │ ├── fr_lfw.hpp │ │ ├── gr_chalearn.hpp │ │ ├── gr_skig.hpp │ │ ├── hpe_humaneva.hpp │ │ ├── hpe_parse.hpp │ │ ├── ir_affine.hpp │ │ ├── ir_robot.hpp │ │ ├── is_bsds.hpp │ │ ├── is_weizmann.hpp │ │ ├── msm_epfl.hpp │ │ ├── msm_middlebury.hpp │ │ ├── or_imagenet.hpp │ │ ├── or_mnist.hpp │ │ ├── or_pascal.hpp │ │ ├── or_sun.hpp │ │ ├── pd_caltech.hpp │ │ ├── pd_inria.hpp │ │ ├── slam_kitti.hpp │ │ ├── slam_tumindoor.hpp │ │ ├── tr_chars.hpp │ │ ├── tr_icdar.hpp │ │ ├── tr_svt.hpp │ │ ├── track_alov.hpp │ │ ├── track_vot.hpp │ │ └── util.hpp │ ├── dpm.hpp │ ├── face.hpp │ ├── face │ │ ├── bif.hpp │ │ ├── facerec.hpp │ │ └── predict_collector.hpp │ ├── features2d.hpp │ ├── features2d │ │ └── features2d.hpp │ ├── flann.hpp │ ├── flann │ │ ├── all_indices.h │ │ ├── allocator.h │ │ ├── any.h │ │ ├── autotuned_index.h │ │ ├── composite_index.h │ │ ├── config.h │ │ ├── defines.h │ │ ├── dist.h │ │ ├── dummy.h │ │ ├── dynamic_bitset.h │ │ ├── flann.hpp │ │ ├── flann_base.hpp │ │ ├── general.h │ │ ├── ground_truth.h │ │ ├── hdf5.h │ │ ├── heap.h │ │ ├── hierarchical_clustering_index.h │ │ ├── index_testing.h │ │ ├── kdtree_index.h │ │ ├── kdtree_single_index.h │ │ ├── kmeans_index.h │ │ ├── linear_index.h │ │ ├── logger.h │ │ ├── lsh_index.h │ │ ├── lsh_table.h │ │ ├── matrix.h │ │ ├── miniflann.hpp │ │ ├── nn_index.h │ │ ├── object_factory.h │ │ ├── params.h │ │ ├── random.h │ │ ├── result_set.h │ │ ├── sampling.h │ │ ├── saving.h │ │ ├── simplex_downhill.h │ │ └── timer.h │ ├── freetype.hpp │ ├── fuzzy.hpp │ ├── fuzzy │ │ ├── fuzzy_F0_math.hpp │ │ ├── fuzzy_image.hpp │ │ └── types.hpp │ ├── hdf.hpp │ ├── hdf │ │ └── hdf5.hpp │ ├── highgui.hpp │ ├── highgui │ │ ├── highgui.hpp │ │ └── highgui_c.h │ ├── imgcodecs.hpp │ ├── imgcodecs │ │ ├── imgcodecs.hpp │ │ ├── imgcodecs_c.h │ │ └── ios.h │ ├── imgproc.hpp │ ├── imgproc │ │ ├── detail │ │ │ └── distortion_model.hpp │ │ ├── hal │ │ │ ├── hal.hpp │ │ │ └── interface.h │ │ ├── imgproc.hpp │ │ ├── imgproc_c.h │ │ └── types_c.h │ ├── line_descriptor.hpp │ ├── line_descriptor │ │ └── descriptor.hpp │ ├── ml.hpp │ ├── ml │ │ └── ml.hpp │ ├── objdetect.hpp │ ├── objdetect │ │ ├── detection_based_tracker.hpp │ │ ├── objdetect.hpp │ │ └── objdetect_c.h │ ├── opencv.hpp │ ├── opencv_modules.hpp │ ├── optflow.hpp │ ├── optflow │ │ ├── motempl.hpp │ │ ├── pcaflow.hpp │ │ └── sparse_matching_gpc.hpp │ ├── phase_unwrapping.hpp │ ├── phase_unwrapping │ │ ├── histogramphaseunwrapping.hpp │ │ └── phase_unwrapping.hpp │ ├── photo.hpp │ ├── photo │ │ ├── cuda.hpp │ │ ├── photo.hpp │ │ └── photo_c.h │ ├── plot.hpp │ ├── reg │ │ ├── map.hpp │ │ ├── mapaffine.hpp │ │ ├── mapper.hpp │ │ ├── mappergradaffine.hpp │ │ ├── mappergradeuclid.hpp │ │ ├── mappergradproj.hpp │ │ ├── mappergradshift.hpp │ │ ├── mappergradsimilar.hpp │ │ ├── mapperpyramid.hpp │ │ ├── mapprojec.hpp │ │ └── mapshift.hpp │ ├── rgbd.hpp │ ├── rgbd │ │ └── linemod.hpp │ ├── saliency.hpp │ ├── saliency │ │ ├── saliencyBaseClasses.hpp │ │ └── saliencySpecializedClasses.hpp │ ├── shape.hpp │ ├── shape │ │ ├── emdL1.hpp │ │ ├── hist_cost.hpp │ │ ├── shape.hpp │ │ ├── shape_distance.hpp │ │ └── shape_transformer.hpp │ ├── stereo.hpp │ ├── stereo │ │ ├── descriptor.hpp │ │ ├── matching.hpp │ │ └── stereo.hpp │ ├── stitching.hpp │ ├── stitching │ │ ├── detail │ │ │ ├── autocalib.hpp │ │ │ ├── blenders.hpp │ │ │ ├── camera.hpp │ │ │ ├── exposure_compensate.hpp │ │ │ ├── matchers.hpp │ │ │ ├── motion_estimators.hpp │ │ │ ├── seam_finders.hpp │ │ │ ├── timelapsers.hpp │ │ │ ├── util.hpp │ │ │ ├── util_inl.hpp │ │ │ ├── warpers.hpp │ │ │ └── warpers_inl.hpp │ │ └── warpers.hpp │ ├── structured_light.hpp │ ├── structured_light │ │ ├── graycodepattern.hpp │ │ ├── sinusoidalpattern.hpp │ │ └── structured_light.hpp │ ├── superres.hpp │ ├── superres │ │ └── optical_flow.hpp │ ├── surface_matching.hpp │ ├── surface_matching │ │ ├── icp.hpp │ │ ├── pose_3d.hpp │ │ ├── ppf_helpers.hpp │ │ ├── ppf_match_3d.hpp │ │ └── t_hash_int.hpp │ ├── text.hpp │ ├── text │ │ ├── erfilter.hpp │ │ └── ocr.hpp │ ├── video.hpp │ ├── video │ │ ├── background_segm.hpp │ │ ├── tracking.hpp │ │ ├── tracking_c.h │ │ └── video.hpp │ ├── videoio.hpp │ ├── videoio │ │ ├── cap_ios.h │ │ ├── videoio.hpp │ │ └── videoio_c.h │ ├── videostab.hpp │ ├── videostab │ │ ├── deblurring.hpp │ │ ├── fast_marching.hpp │ │ ├── fast_marching_inl.hpp │ │ ├── frame_source.hpp │ │ ├── global_motion.hpp │ │ ├── inpainting.hpp │ │ ├── log.hpp │ │ ├── motion_core.hpp │ │ ├── motion_stabilizing.hpp │ │ ├── optical_flow.hpp │ │ ├── outlier_rejection.hpp │ │ ├── ring_buffer.hpp │ │ ├── stabilizer.hpp │ │ └── wobble_suppression.hpp │ ├── viz.hpp │ ├── viz │ │ ├── types.hpp │ │ ├── viz3d.hpp │ │ ├── vizcore.hpp │ │ ├── widget_accessor.hpp │ │ └── widgets.hpp │ ├── ximgproc.hpp │ ├── ximgproc │ │ ├── deriche_filter.hpp │ │ ├── disparity_filter.hpp │ │ ├── edge_filter.hpp │ │ ├── estimated_covariance.hpp │ │ ├── fast_hough_transform.hpp │ │ ├── fast_line_detector.hpp │ │ ├── lsc.hpp │ │ ├── paillou_filter.hpp │ │ ├── seeds.hpp │ │ ├── segmentation.hpp │ │ ├── slic.hpp │ │ ├── sparse_match_interpolator.hpp │ │ ├── structured_edge_detection.hpp │ │ └── weighted_median_filter.hpp │ ├── xobjdetect.hpp │ ├── xphoto.hpp │ └── xphoto │ │ ├── bm3d_image_denoising.hpp │ │ ├── dct_image_denoising.hpp │ │ ├── inpainting.hpp │ │ └── white_balance.hpp ├── postprocess.h ├── rknn_api.h ├── tool.h ├── xf86drm.h └── xf86drmMode.h ├── libs ├── libopencv_core.so ├── libopencv_core.so.3.4 ├── libopencv_core.so.3.4.1 ├── libopencv_flann.so ├── libopencv_highgui.so ├── libopencv_highgui.so.3.4 ├── libopencv_highgui.so.3.4.1 ├── libopencv_imgcodecs.so ├── libopencv_imgcodecs.so.3.4 ├── libopencv_imgcodecs.so.3.4.1 ├── libopencv_imgproc.so ├── libopencv_imgproc.so.3.4 ├── libopencv_imgproc.so.3.4.1 ├── libopencv_video.so ├── libopencv_videoio.so ├── libopencv_videoio.so.3.4 ├── libopencv_videoio.so.3.4.1 └── librknn_api.so ├── model ├── coco_80_labels_list.txt ├── rk180x │ └── yolov5s_relu_rk180x_out_opt.rknn ├── rv1109_rv1126 │ └── yolov5s_relu_rv1109_rv1126_out_opt.rknn ├── test1.jpg └── test2.jpg └── src ├── drm_func.c ├── main.cc └── postprocess.cc /CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.4.1) 2 | 3 | project(rknn_yolov5_demo_linux) 4 | 5 | set(CMAKE_SYSTEM_NAME Linux) 6 | 7 | set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS}") 8 | set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") 9 | 10 | if (CMAKE_C_COMPILER MATCHES "aarch64") 11 | set(LIB_ARCH lib64) 12 | else() 13 | set(LIB_ARCH lib) 14 | endif() 15 | 16 | # drm 17 | set(DRM_DIR ${CMAKE_SOURCE_DIR}) 18 | include_directories(${DRM_DIR}/include) 19 | include_directories(${DRM_DIR}/include/libdrm) 20 | 21 | include_directories(${CMAKE_SOURCE_DIR}/include) 22 | # rknn api 23 | set(RKNN_API_PATH ${CMAKE_SOURCE_DIR}) 24 | include_directories(${RKNN_API_PATH}/include) 25 | set(RKNN_API_LIB ${RKNN_API_PATH}/libs/librknn_api.so) 26 | 27 | 28 | INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/include) 29 | LINK_DIRECTORIES(${PROJECT_SOURCE_DIR}/libs) 30 | set(link_libs rknn_api pthread opencv_imgproc opencv_highgui opencv_videoio opencv_core opencv_imgcodecs) 31 | 32 | set(CMAKE_INSTALL_RPATH "lib") 33 | 34 | add_executable(rknn_yolov5_demo 35 | src/drm_func.c 36 | src/postprocess.cc 37 | src/main.cc 38 | ) 39 | 40 | set(link_libs rknn_api ${OpenCV_LIBRARIES} pthread ${link_libs}) 41 | 42 | target_link_libraries(rknn_yolov5_demo 43 | ${link_libs} 44 | dl 45 | ) 46 | 47 | # install target and libraries 48 | set(CMAKE_INSTALL_PREFIX ${CMAKE_SOURCE_DIR}/install/rknn_yolov5_demo) 49 | install(TARGETS rknn_yolov5_demo DESTINATION ./) 50 | install(DIRECTORY model DESTINATION ./) 51 | install(PROGRAMS ${RKNN_API_LIB} DESTINATION lib) 52 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Yolo-v5 demo 2 | This Demo shows yolo-v5 RKNN model object detection. We refer to repository:https://github.com/airockchip/yolov5. 3 | 4 | 步骤: 5 | 参考上述链接训练,里面的yolov5和官方的大致修改了两个部分,一个是focus层,直接用卷积替代,一个是silu->relu,增加速度。 6 | 然后转Onnx -> rknn,这个都是工程里面带的,测试了很多遍,无坑。 7 | 8 | 然后编译本工程,本工程基于rk3300pro测试,里面有个测试模型,三分类,opencv库,rknn库,和drm库,可以直接编译运行。若用自己的模型,修改类别即可。 9 | -------------------------------------------------------------------------------- /build/3_class.rknn: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaqing10/RKNN_YOLOV5S_CPP/49c7731036450a01c78b0e34d799a6a61a5b1b37/build/3_class.rknn -------------------------------------------------------------------------------- /build/608x608.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaqing10/RKNN_YOLOV5S_CPP/49c7731036450a01c78b0e34d799a6a61a5b1b37/build/608x608.jpg -------------------------------------------------------------------------------- /build/CMakeFiles/3.13.4/CMakeCCompiler.cmake: -------------------------------------------------------------------------------- 1 | set(CMAKE_C_COMPILER "/usr/bin/cc") 2 | set(CMAKE_C_COMPILER_ARG1 "") 3 | set(CMAKE_C_COMPILER_ID "GNU") 4 | set(CMAKE_C_COMPILER_VERSION "8.3.0") 5 | set(CMAKE_C_COMPILER_VERSION_INTERNAL "") 6 | set(CMAKE_C_COMPILER_WRAPPER "") 7 | set(CMAKE_C_STANDARD_COMPUTED_DEFAULT "11") 8 | set(CMAKE_C_COMPILE_FEATURES "c_std_90;c_function_prototypes;c_std_99;c_restrict;c_variadic_macros;c_std_11;c_static_assert") 9 | set(CMAKE_C90_COMPILE_FEATURES "c_std_90;c_function_prototypes") 10 | set(CMAKE_C99_COMPILE_FEATURES "c_std_99;c_restrict;c_variadic_macros") 11 | set(CMAKE_C11_COMPILE_FEATURES "c_std_11;c_static_assert") 12 | 13 | set(CMAKE_C_PLATFORM_ID "Linux") 14 | set(CMAKE_C_SIMULATE_ID "") 15 | set(CMAKE_C_SIMULATE_VERSION "") 16 | 17 | 18 | 19 | set(CMAKE_AR "/usr/bin/ar") 20 | set(CMAKE_C_COMPILER_AR "/usr/bin/gcc-ar-8") 21 | set(CMAKE_RANLIB "/usr/bin/ranlib") 22 | set(CMAKE_C_COMPILER_RANLIB "/usr/bin/gcc-ranlib-8") 23 | set(CMAKE_LINKER "/usr/bin/ld") 24 | set(CMAKE_COMPILER_IS_GNUCC 1) 25 | set(CMAKE_C_COMPILER_LOADED 1) 26 | set(CMAKE_C_COMPILER_WORKS TRUE) 27 | set(CMAKE_C_ABI_COMPILED TRUE) 28 | set(CMAKE_COMPILER_IS_MINGW ) 29 | set(CMAKE_COMPILER_IS_CYGWIN ) 30 | if(CMAKE_COMPILER_IS_CYGWIN) 31 | set(CYGWIN 1) 32 | set(UNIX 1) 33 | endif() 34 | 35 | set(CMAKE_C_COMPILER_ENV_VAR "CC") 36 | 37 | if(CMAKE_COMPILER_IS_MINGW) 38 | set(MINGW 1) 39 | endif() 40 | set(CMAKE_C_COMPILER_ID_RUN 1) 41 | set(CMAKE_C_SOURCE_FILE_EXTENSIONS c;m) 42 | set(CMAKE_C_IGNORE_EXTENSIONS h;H;o;O;obj;OBJ;def;DEF;rc;RC) 43 | set(CMAKE_C_LINKER_PREFERENCE 10) 44 | 45 | # Save compiler ABI information. 46 | set(CMAKE_C_SIZEOF_DATA_PTR "8") 47 | set(CMAKE_C_COMPILER_ABI "ELF") 48 | set(CMAKE_C_LIBRARY_ARCHITECTURE "aarch64-linux-gnu") 49 | 50 | if(CMAKE_C_SIZEOF_DATA_PTR) 51 | set(CMAKE_SIZEOF_VOID_P "${CMAKE_C_SIZEOF_DATA_PTR}") 52 | endif() 53 | 54 | if(CMAKE_C_COMPILER_ABI) 55 | set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_C_COMPILER_ABI}") 56 | endif() 57 | 58 | if(CMAKE_C_LIBRARY_ARCHITECTURE) 59 | set(CMAKE_LIBRARY_ARCHITECTURE "aarch64-linux-gnu") 60 | endif() 61 | 62 | set(CMAKE_C_CL_SHOWINCLUDES_PREFIX "") 63 | if(CMAKE_C_CL_SHOWINCLUDES_PREFIX) 64 | set(CMAKE_CL_SHOWINCLUDES_PREFIX "${CMAKE_C_CL_SHOWINCLUDES_PREFIX}") 65 | endif() 66 | 67 | 68 | 69 | 70 | 71 | set(CMAKE_C_IMPLICIT_LINK_LIBRARIES "gcc;gcc_s;c;gcc;gcc_s") 72 | set(CMAKE_C_IMPLICIT_LINK_DIRECTORIES "/usr/lib/gcc/aarch64-linux-gnu/8;/usr/lib/aarch64-linux-gnu;/usr/lib;/lib/aarch64-linux-gnu;/lib") 73 | set(CMAKE_C_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "") 74 | -------------------------------------------------------------------------------- /build/CMakeFiles/3.13.4/CMakeDetermineCompilerABI_C.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaqing10/RKNN_YOLOV5S_CPP/49c7731036450a01c78b0e34d799a6a61a5b1b37/build/CMakeFiles/3.13.4/CMakeDetermineCompilerABI_C.bin -------------------------------------------------------------------------------- /build/CMakeFiles/3.13.4/CMakeDetermineCompilerABI_CXX.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaqing10/RKNN_YOLOV5S_CPP/49c7731036450a01c78b0e34d799a6a61a5b1b37/build/CMakeFiles/3.13.4/CMakeDetermineCompilerABI_CXX.bin -------------------------------------------------------------------------------- /build/CMakeFiles/3.13.4/CMakeSystem.cmake: -------------------------------------------------------------------------------- 1 | set(CMAKE_HOST_SYSTEM "Linux-4.4.189") 2 | set(CMAKE_HOST_SYSTEM_NAME "Linux") 3 | set(CMAKE_HOST_SYSTEM_VERSION "4.4.189") 4 | set(CMAKE_HOST_SYSTEM_PROCESSOR "aarch64") 5 | 6 | 7 | 8 | set(CMAKE_SYSTEM "Linux-4.4.189") 9 | set(CMAKE_SYSTEM_NAME "Linux") 10 | set(CMAKE_SYSTEM_VERSION "4.4.189") 11 | set(CMAKE_SYSTEM_PROCESSOR "aarch64") 12 | 13 | set(CMAKE_CROSSCOMPILING "FALSE") 14 | 15 | set(CMAKE_SYSTEM_LOADED 1) 16 | -------------------------------------------------------------------------------- /build/CMakeFiles/3.13.4/CompilerIdC/a.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaqing10/RKNN_YOLOV5S_CPP/49c7731036450a01c78b0e34d799a6a61a5b1b37/build/CMakeFiles/3.13.4/CompilerIdC/a.out -------------------------------------------------------------------------------- /build/CMakeFiles/3.13.4/CompilerIdCXX/a.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaqing10/RKNN_YOLOV5S_CPP/49c7731036450a01c78b0e34d799a6a61a5b1b37/build/CMakeFiles/3.13.4/CompilerIdCXX/a.out -------------------------------------------------------------------------------- /build/CMakeFiles/CMakeDirectoryInformation.cmake: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "Unix Makefiles" Generator, CMake Version 3.13 3 | 4 | # Relative path conversion top directories. 5 | set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/home/toybrick/workspace/rknn_yolov5_demo") 6 | set(CMAKE_RELATIVE_PATH_TOP_BINARY "/home/toybrick/workspace/rknn_yolov5_demo/build") 7 | 8 | # Force unix paths in dependencies. 9 | set(CMAKE_FORCE_UNIX_PATHS 1) 10 | 11 | 12 | # The C and CXX include file regular expressions for this directory. 13 | set(CMAKE_C_INCLUDE_REGEX_SCAN "^.*$") 14 | set(CMAKE_C_INCLUDE_REGEX_COMPLAIN "^$") 15 | set(CMAKE_CXX_INCLUDE_REGEX_SCAN ${CMAKE_C_INCLUDE_REGEX_SCAN}) 16 | set(CMAKE_CXX_INCLUDE_REGEX_COMPLAIN ${CMAKE_C_INCLUDE_REGEX_COMPLAIN}) 17 | -------------------------------------------------------------------------------- /build/CMakeFiles/TargetDirectories.txt: -------------------------------------------------------------------------------- 1 | /home/toybrick/workspace/rknn_yolov5_demo/build/CMakeFiles/install/strip.dir 2 | /home/toybrick/workspace/rknn_yolov5_demo/build/CMakeFiles/edit_cache.dir 3 | /home/toybrick/workspace/rknn_yolov5_demo/build/CMakeFiles/rknn_yolov5_demo.dir 4 | /home/toybrick/workspace/rknn_yolov5_demo/build/CMakeFiles/rebuild_cache.dir 5 | /home/toybrick/workspace/rknn_yolov5_demo/build/CMakeFiles/list_install_components.dir 6 | /home/toybrick/workspace/rknn_yolov5_demo/build/CMakeFiles/install/local.dir 7 | /home/toybrick/workspace/rknn_yolov5_demo/build/CMakeFiles/install.dir 8 | -------------------------------------------------------------------------------- /build/CMakeFiles/cmake.check_cache: -------------------------------------------------------------------------------- 1 | # This file is generated by cmake for dependency checking of the CMakeCache.txt file 2 | -------------------------------------------------------------------------------- /build/CMakeFiles/feature_tests.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaqing10/RKNN_YOLOV5S_CPP/49c7731036450a01c78b0e34d799a6a61a5b1b37/build/CMakeFiles/feature_tests.bin -------------------------------------------------------------------------------- /build/CMakeFiles/feature_tests.c: -------------------------------------------------------------------------------- 1 | 2 | const char features[] = {"\n" 3 | "C_FEATURE:" 4 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 304 5 | "1" 6 | #else 7 | "0" 8 | #endif 9 | "c_function_prototypes\n" 10 | "C_FEATURE:" 11 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 304 && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L 12 | "1" 13 | #else 14 | "0" 15 | #endif 16 | "c_restrict\n" 17 | "C_FEATURE:" 18 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201000L 19 | "1" 20 | #else 21 | "0" 22 | #endif 23 | "c_static_assert\n" 24 | "C_FEATURE:" 25 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 304 && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L 26 | "1" 27 | #else 28 | "0" 29 | #endif 30 | "c_variadic_macros\n" 31 | 32 | }; 33 | 34 | int main(int argc, char** argv) { (void)argv; return features[argc]; } 35 | -------------------------------------------------------------------------------- /build/CMakeFiles/progress.marks: -------------------------------------------------------------------------------- 1 | 4 2 | -------------------------------------------------------------------------------- /build/CMakeFiles/rknn_yolov5_demo.dir/C.includecache: -------------------------------------------------------------------------------- 1 | #IncludeRegexLine: ^[ ]*[#%][ ]*(include|import)[ ]*[<"]([^">]+)([">]) 2 | 3 | #IncludeRegexScan: ^.*$ 4 | 5 | #IncludeRegexComplain: ^$ 6 | 7 | #IncludeRegexTransform: 8 | 9 | ../include/drm_func.h 10 | stdint.h 11 | - 12 | stdio.h 13 | - 14 | stdlib.h 15 | - 16 | string.h 17 | - 18 | sys/fcntl.h 19 | - 20 | unistd.h 21 | - 22 | errno.h 23 | - 24 | sys/mman.h 25 | - 26 | linux/input.h 27 | - 28 | libdrm/drm_fourcc.h 29 | ../include/libdrm/drm_fourcc.h 30 | xf86drm.h 31 | ../include/xf86drm.h 32 | 33 | ../include/libdrm/drm.h 34 | linux/types.h 35 | - 36 | asm/ioctl.h 37 | - 38 | stdint.h 39 | - 40 | sys/ioccom.h 41 | - 42 | sys/types.h 43 | - 44 | drm_mode.h 45 | ../include/libdrm/drm_mode.h 46 | 47 | ../include/libdrm/drm_fourcc.h 48 | drm.h 49 | ../include/libdrm/drm.h 50 | 51 | ../include/libdrm/drm_mode.h 52 | drm.h 53 | ../include/libdrm/drm.h 54 | 55 | ../include/xf86drm.h 56 | stdarg.h 57 | - 58 | sys/types.h 59 | - 60 | stdint.h 61 | - 62 | drm.h 63 | - 64 | sys/ioccom.h 65 | - 66 | ia64intrin.h 67 | - 68 | 69 | /home/toybrick/workspace/rknn_yolov5_demo/src/drm_func.c 70 | drm_func.h 71 | /home/toybrick/workspace/rknn_yolov5_demo/src/drm_func.h 72 | dlfcn.h 73 | - 74 | 75 | -------------------------------------------------------------------------------- /build/CMakeFiles/rknn_yolov5_demo.dir/DependInfo.cmake: -------------------------------------------------------------------------------- 1 | # The set of languages for which implicit dependencies are needed: 2 | set(CMAKE_DEPENDS_LANGUAGES 3 | "C" 4 | "CXX" 5 | ) 6 | # The set of files for implicit dependencies of each language: 7 | set(CMAKE_DEPENDS_CHECK_C 8 | "/home/toybrick/workspace/rknn_yolov5_demo/src/drm_func.c" "/home/toybrick/workspace/rknn_yolov5_demo/build/CMakeFiles/rknn_yolov5_demo.dir/src/drm_func.c.o" 9 | ) 10 | set(CMAKE_C_COMPILER_ID "GNU") 11 | 12 | # The include file search paths: 13 | set(CMAKE_C_TARGET_INCLUDE_PATH 14 | "../include" 15 | "../include/libdrm" 16 | ) 17 | set(CMAKE_DEPENDS_CHECK_CXX 18 | "/home/toybrick/workspace/rknn_yolov5_demo/src/main.cc" "/home/toybrick/workspace/rknn_yolov5_demo/build/CMakeFiles/rknn_yolov5_demo.dir/src/main.cc.o" 19 | "/home/toybrick/workspace/rknn_yolov5_demo/src/postprocess.cc" "/home/toybrick/workspace/rknn_yolov5_demo/build/CMakeFiles/rknn_yolov5_demo.dir/src/postprocess.cc.o" 20 | ) 21 | set(CMAKE_CXX_COMPILER_ID "GNU") 22 | 23 | # The include file search paths: 24 | set(CMAKE_CXX_TARGET_INCLUDE_PATH 25 | "../include" 26 | "../include/libdrm" 27 | ) 28 | 29 | # Targets to which this target links. 30 | set(CMAKE_TARGET_LINKED_INFO_FILES 31 | ) 32 | 33 | # Fortran module output directory. 34 | set(CMAKE_Fortran_TARGET_MODULE_DIR "") 35 | -------------------------------------------------------------------------------- /build/CMakeFiles/rknn_yolov5_demo.dir/cmake_clean.cmake: -------------------------------------------------------------------------------- 1 | file(REMOVE_RECURSE 2 | "CMakeFiles/rknn_yolov5_demo.dir/src/drm_func.c.o" 3 | "CMakeFiles/rknn_yolov5_demo.dir/src/postprocess.cc.o" 4 | "CMakeFiles/rknn_yolov5_demo.dir/src/main.cc.o" 5 | "rknn_yolov5_demo.pdb" 6 | "rknn_yolov5_demo" 7 | ) 8 | 9 | # Per-language clean rules from dependency scanning. 10 | foreach(lang C CXX) 11 | include(CMakeFiles/rknn_yolov5_demo.dir/cmake_clean_${lang}.cmake OPTIONAL) 12 | endforeach() 13 | -------------------------------------------------------------------------------- /build/CMakeFiles/rknn_yolov5_demo.dir/flags.make: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "Unix Makefiles" Generator, CMake Version 3.13 3 | 4 | # compile C with /usr/bin/cc 5 | # compile CXX with /usr/bin/c++ 6 | C_FLAGS = 7 | 8 | C_DEFINES = 9 | 10 | C_INCLUDES = -I/home/toybrick/workspace/rknn_yolov5_demo/include -I/home/toybrick/workspace/rknn_yolov5_demo/include/libdrm 11 | 12 | CXX_FLAGS = -std=c++11 13 | 14 | CXX_DEFINES = 15 | 16 | CXX_INCLUDES = -I/home/toybrick/workspace/rknn_yolov5_demo/include -I/home/toybrick/workspace/rknn_yolov5_demo/include/libdrm 17 | 18 | -------------------------------------------------------------------------------- /build/CMakeFiles/rknn_yolov5_demo.dir/link.txt: -------------------------------------------------------------------------------- 1 | /usr/bin/c++ -std=c++11 CMakeFiles/rknn_yolov5_demo.dir/src/drm_func.c.o CMakeFiles/rknn_yolov5_demo.dir/src/postprocess.cc.o CMakeFiles/rknn_yolov5_demo.dir/src/main.cc.o -o rknn_yolov5_demo -L/home/toybrick/workspace/rknn_yolov5_demo/libs -Wl,-rpath,/home/toybrick/workspace/rknn_yolov5_demo/libs: -lrknn_api -lpthread -lrknn_api -lpthread -lopencv_imgproc -lopencv_highgui -lopencv_videoio -lopencv_core -lopencv_imgcodecs -ldl 2 | -------------------------------------------------------------------------------- /build/CMakeFiles/rknn_yolov5_demo.dir/progress.make: -------------------------------------------------------------------------------- 1 | CMAKE_PROGRESS_1 = 1 2 | CMAKE_PROGRESS_2 = 2 3 | CMAKE_PROGRESS_3 = 3 4 | CMAKE_PROGRESS_4 = 4 5 | 6 | -------------------------------------------------------------------------------- /build/CMakeFiles/rknn_yolov5_demo.dir/src/drm_func.c.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaqing10/RKNN_YOLOV5S_CPP/49c7731036450a01c78b0e34d799a6a61a5b1b37/build/CMakeFiles/rknn_yolov5_demo.dir/src/drm_func.c.o -------------------------------------------------------------------------------- /build/CMakeFiles/rknn_yolov5_demo.dir/src/main.cc.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaqing10/RKNN_YOLOV5S_CPP/49c7731036450a01c78b0e34d799a6a61a5b1b37/build/CMakeFiles/rknn_yolov5_demo.dir/src/main.cc.o -------------------------------------------------------------------------------- /build/CMakeFiles/rknn_yolov5_demo.dir/src/postprocess.cc.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaqing10/RKNN_YOLOV5S_CPP/49c7731036450a01c78b0e34d799a6a61a5b1b37/build/CMakeFiles/rknn_yolov5_demo.dir/src/postprocess.cc.o -------------------------------------------------------------------------------- /build/out.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaqing10/RKNN_YOLOV5S_CPP/49c7731036450a01c78b0e34d799a6a61a5b1b37/build/out.jpg -------------------------------------------------------------------------------- /build/rknn_yolov5_demo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaqing10/RKNN_YOLOV5S_CPP/49c7731036450a01c78b0e34d799a6a61a5b1b37/build/rknn_yolov5_demo -------------------------------------------------------------------------------- /include/demo.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaqing10/RKNN_YOLOV5S_CPP/49c7731036450a01c78b0e34d799a6a61a5b1b37/include/demo.h -------------------------------------------------------------------------------- /include/demo_define.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaqing10/RKNN_YOLOV5S_CPP/49c7731036450a01c78b0e34d799a6a61a5b1b37/include/demo_define.h -------------------------------------------------------------------------------- /include/drm_func.h: -------------------------------------------------------------------------------- 1 | #ifndef __DRM_FUNC_H__ 2 | #define __DRM_FUNC_H__ 3 | #include 4 | #include 5 | #include 6 | #include 7 | #include // open function 8 | #include // close function 9 | #include 10 | #include 11 | 12 | 13 | #include 14 | #include "libdrm/drm_fourcc.h" 15 | #include "xf86drm.h" 16 | 17 | #ifdef __cplusplus 18 | extern "C" { 19 | #endif 20 | 21 | typedef int (* FUNC_DRM_IOCTL)(int fd, unsigned long request, void *arg); 22 | 23 | typedef struct _drm_context{ 24 | void *drm_handle; 25 | FUNC_DRM_IOCTL io_func; 26 | } drm_context; 27 | 28 | /* memory type definitions. */ 29 | enum drm_rockchip_gem_mem_type 30 | { 31 | /* Physically Continuous memory and used as default. */ 32 | ROCKCHIP_BO_CONTIG = 1 << 0, 33 | /* cachable mapping. */ 34 | ROCKCHIP_BO_CACHABLE = 1 << 1, 35 | /* write-combine mapping. */ 36 | ROCKCHIP_BO_WC = 1 << 2, 37 | ROCKCHIP_BO_SECURE = 1 << 3, 38 | ROCKCHIP_BO_MASK = ROCKCHIP_BO_CONTIG | ROCKCHIP_BO_CACHABLE | 39 | ROCKCHIP_BO_WC | ROCKCHIP_BO_SECURE 40 | }; 41 | 42 | int drm_init(drm_context *drm_ctx); 43 | 44 | void* drm_buf_alloc(drm_context *drm_ctx,int drm_fd, int TexWidth, int TexHeight,int bpp,int *fd,unsigned int *handle,size_t *actual_size); 45 | 46 | int drm_buf_destroy(drm_context *drm_ctx,int drm_fd,int buf_fd, int handle,void *drm_buf,size_t size); 47 | 48 | void drm_deinit(drm_context *drm_ctx, int drm_fd); 49 | 50 | #ifdef __cplusplus 51 | } 52 | #endif 53 | #endif /*__DRM_FUNC_H__*/ -------------------------------------------------------------------------------- /include/libdrm/drm_sarea.h: -------------------------------------------------------------------------------- 1 | /** 2 | * \file drm_sarea.h 3 | * \brief SAREA definitions 4 | * 5 | * \author Michel Dänzer 6 | */ 7 | 8 | /* 9 | * Copyright 2002 Tungsten Graphics, Inc., Cedar Park, Texas. 10 | * All Rights Reserved. 11 | * 12 | * Permission is hereby granted, free of charge, to any person obtaining a 13 | * copy of this software and associated documentation files (the "Software"), 14 | * to deal in the Software without restriction, including without limitation 15 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, 16 | * and/or sell copies of the Software, and to permit persons to whom the 17 | * Software is furnished to do so, subject to the following conditions: 18 | * 19 | * The above copyright notice and this permission notice (including the next 20 | * paragraph) shall be included in all copies or substantial portions of the 21 | * Software. 22 | * 23 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 24 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 25 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 26 | * TUNGSTEN GRAPHICS AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR 27 | * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 28 | * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 29 | * OTHER DEALINGS IN THE SOFTWARE. 30 | */ 31 | 32 | #ifndef _DRM_SAREA_H_ 33 | #define _DRM_SAREA_H_ 34 | 35 | #include "drm.h" 36 | 37 | #if defined(__cplusplus) 38 | extern "C" { 39 | #endif 40 | 41 | /* SAREA area needs to be at least a page */ 42 | #if defined(__alpha__) 43 | #define SAREA_MAX 0x2000U 44 | #elif defined(__mips__) 45 | #define SAREA_MAX 0x4000U 46 | #elif defined(__ia64__) 47 | #define SAREA_MAX 0x10000U /* 64kB */ 48 | #else 49 | /* Intel 830M driver needs at least 8k SAREA */ 50 | #define SAREA_MAX 0x2000U 51 | #endif 52 | 53 | /** Maximum number of drawables in the SAREA */ 54 | #define SAREA_MAX_DRAWABLES 256 55 | 56 | #define SAREA_DRAWABLE_CLAIMED_ENTRY 0x80000000 57 | 58 | /** SAREA drawable */ 59 | struct drm_sarea_drawable { 60 | unsigned int stamp; 61 | unsigned int flags; 62 | }; 63 | 64 | /** SAREA frame */ 65 | struct drm_sarea_frame { 66 | unsigned int x; 67 | unsigned int y; 68 | unsigned int width; 69 | unsigned int height; 70 | unsigned int fullscreen; 71 | }; 72 | 73 | /** SAREA */ 74 | struct drm_sarea { 75 | /** first thing is always the DRM locking structure */ 76 | struct drm_hw_lock lock; 77 | /** \todo Use readers/writer lock for drm_sarea::drawable_lock */ 78 | struct drm_hw_lock drawable_lock; 79 | struct drm_sarea_drawable drawableTable[SAREA_MAX_DRAWABLES]; /**< drawables */ 80 | struct drm_sarea_frame frame; /**< frame */ 81 | drm_context_t dummy_context; 82 | }; 83 | 84 | typedef struct drm_sarea_drawable drm_sarea_drawable_t; 85 | typedef struct drm_sarea_frame drm_sarea_frame_t; 86 | typedef struct drm_sarea drm_sarea_t; 87 | 88 | #if defined(__cplusplus) 89 | } 90 | #endif 91 | 92 | #endif /* _DRM_SAREA_H_ */ 93 | -------------------------------------------------------------------------------- /include/libdrm/sis_drm.h: -------------------------------------------------------------------------------- 1 | /* sis_drv.h -- Private header for sis driver -*- linux-c -*- */ 2 | /* 3 | * Copyright 2005 Eric Anholt 4 | * All Rights Reserved. 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining a 7 | * copy of this software and associated documentation files (the "Software"), 8 | * to deal in the Software without restriction, including without limitation 9 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, 10 | * and/or sell copies of the Software, and to permit persons to whom the 11 | * Software is furnished to do so, subject to the following conditions: 12 | * 13 | * The above copyright notice and this permission notice (including the next 14 | * paragraph) shall be included in all copies or substantial portions of the 15 | * Software. 16 | * 17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 20 | * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | * SOFTWARE. 24 | * 25 | */ 26 | 27 | #ifndef __SIS_DRM_H__ 28 | #define __SIS_DRM_H__ 29 | 30 | #include "drm.h" 31 | 32 | #if defined(__cplusplus) 33 | extern "C" { 34 | #endif 35 | 36 | /* SiS specific ioctls */ 37 | #define NOT_USED_0_3 38 | #define DRM_SIS_FB_ALLOC 0x04 39 | #define DRM_SIS_FB_FREE 0x05 40 | #define NOT_USED_6_12 41 | #define DRM_SIS_AGP_INIT 0x13 42 | #define DRM_SIS_AGP_ALLOC 0x14 43 | #define DRM_SIS_AGP_FREE 0x15 44 | #define DRM_SIS_FB_INIT 0x16 45 | 46 | #define DRM_IOCTL_SIS_FB_ALLOC DRM_IOWR(DRM_COMMAND_BASE + DRM_SIS_FB_ALLOC, drm_sis_mem_t) 47 | #define DRM_IOCTL_SIS_FB_FREE DRM_IOW( DRM_COMMAND_BASE + DRM_SIS_FB_FREE, drm_sis_mem_t) 48 | #define DRM_IOCTL_SIS_AGP_INIT DRM_IOWR(DRM_COMMAND_BASE + DRM_SIS_AGP_INIT, drm_sis_agp_t) 49 | #define DRM_IOCTL_SIS_AGP_ALLOC DRM_IOWR(DRM_COMMAND_BASE + DRM_SIS_AGP_ALLOC, drm_sis_mem_t) 50 | #define DRM_IOCTL_SIS_AGP_FREE DRM_IOW( DRM_COMMAND_BASE + DRM_SIS_AGP_FREE, drm_sis_mem_t) 51 | #define DRM_IOCTL_SIS_FB_INIT DRM_IOW( DRM_COMMAND_BASE + DRM_SIS_FB_INIT, drm_sis_fb_t) 52 | /* 53 | #define DRM_IOCTL_SIS_FLIP DRM_IOW( 0x48, drm_sis_flip_t) 54 | #define DRM_IOCTL_SIS_FLIP_INIT DRM_IO( 0x49) 55 | #define DRM_IOCTL_SIS_FLIP_FINAL DRM_IO( 0x50) 56 | */ 57 | 58 | typedef struct { 59 | int context; 60 | unsigned int offset; 61 | unsigned int size; 62 | unsigned long free; 63 | } drm_sis_mem_t; 64 | 65 | typedef struct { 66 | unsigned int offset, size; 67 | } drm_sis_agp_t; 68 | 69 | typedef struct { 70 | unsigned int offset, size; 71 | } drm_sis_fb_t; 72 | 73 | #if defined(__cplusplus) 74 | } 75 | #endif 76 | 77 | #endif /* __SIS_DRM_H__ */ 78 | -------------------------------------------------------------------------------- /include/opencv/cv.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Third party copyrights are property of their respective owners. 16 | // 17 | // Redistribution and use in source and binary forms, with or without modification, 18 | // are permitted provided that the following conditions are met: 19 | // 20 | // * Redistribution's of source code must retain the above copyright notice, 21 | // this list of conditions and the following disclaimer. 22 | // 23 | // * Redistribution's in binary form must reproduce the above copyright notice, 24 | // this list of conditions and the following disclaimer in the documentation 25 | // and/or other materials provided with the distribution. 26 | // 27 | // * The name of the copyright holders may not be used to endorse or promote products 28 | // derived from this software without specific prior written permission. 29 | // 30 | // This software is provided by the copyright holders and contributors "as is" and 31 | // any express or implied warranties, including, but not limited to, the implied 32 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 33 | // In no event shall the Intel Corporation or contributors be liable for any direct, 34 | // indirect, incidental, special, exemplary, or consequential damages 35 | // (including, but not limited to, procurement of substitute goods or services; 36 | // loss of use, data, or profits; or business interruption) however caused 37 | // and on any theory of liability, whether in contract, strict liability, 38 | // or tort (including negligence or otherwise) arising in any way out of 39 | // the use of this software, even if advised of the possibility of such damage. 40 | // 41 | //M*/ 42 | 43 | #ifndef OPENCV_OLD_CV_HPP 44 | #define OPENCV_OLD_CV_HPP 45 | 46 | //#if defined(__GNUC__) 47 | //#warning "This is a deprecated opencv header provided for compatibility. Please include a header from a corresponding opencv module" 48 | //#endif 49 | 50 | #include "cv.h" 51 | #include "opencv2/core.hpp" 52 | #include "opencv2/imgproc.hpp" 53 | #include "opencv2/photo.hpp" 54 | #include "opencv2/video.hpp" 55 | #include "opencv2/highgui.hpp" 56 | #include "opencv2/features2d.hpp" 57 | #include "opencv2/calib3d.hpp" 58 | #include "opencv2/objdetect.hpp" 59 | 60 | #endif 61 | -------------------------------------------------------------------------------- /include/opencv/cvaux.h: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // Intel License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000, Intel Corporation, all rights reserved. 14 | // Third party copyrights are property of their respective owners. 15 | // 16 | // Redistribution and use in source and binary forms, with or without modification, 17 | // are permitted provided that the following conditions are met: 18 | // 19 | // * Redistribution's of source code must retain the above copyright notice, 20 | // this list of conditions and the following disclaimer. 21 | // 22 | // * Redistribution's in binary form must reproduce the above copyright notice, 23 | // this list of conditions and the following disclaimer in the documentation 24 | // and/or other materials provided with the distribution. 25 | // 26 | // * The name of Intel Corporation may not be used to endorse or promote products 27 | // derived from this software without specific prior written permission. 28 | // 29 | // This software is provided by the copyright holders and contributors "as is" and 30 | // any express or implied warranties, including, but not limited to, the implied 31 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 32 | // In no event shall the Intel Corporation or contributors be liable for any direct, 33 | // indirect, incidental, special, exemplary, or consequential damages 34 | // (including, but not limited to, procurement of substitute goods or services; 35 | // loss of use, data, or profits; or business interruption) however caused 36 | // and on any theory of liability, whether in contract, strict liability, 37 | // or tort (including negligence or otherwise) arising in any way out of 38 | // the use of this software, even if advised of the possibility of such damage. 39 | // 40 | //M*/ 41 | 42 | #ifndef OPENCV_OLD_AUX_H 43 | #define OPENCV_OLD_AUX_H 44 | 45 | //#if defined(__GNUC__) 46 | //#warning "This is a deprecated opencv header provided for compatibility. Please include a header from a corresponding opencv module" 47 | //#endif 48 | 49 | #include "opencv2/core/core_c.h" 50 | #include "opencv2/imgproc/imgproc_c.h" 51 | #include "opencv2/photo/photo_c.h" 52 | #include "opencv2/video/tracking_c.h" 53 | #include "opencv2/objdetect/objdetect_c.h" 54 | 55 | #endif 56 | 57 | /* End of file. */ 58 | -------------------------------------------------------------------------------- /include/opencv/cvaux.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // Intel License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000, Intel Corporation, all rights reserved. 14 | // Third party copyrights are property of their respective owners. 15 | // 16 | // Redistribution and use in source and binary forms, with or without modification, 17 | // are permitted provided that the following conditions are met: 18 | // 19 | // * Redistribution's of source code must retain the above copyright notice, 20 | // this list of conditions and the following disclaimer. 21 | // 22 | // * Redistribution's in binary form must reproduce the above copyright notice, 23 | // this list of conditions and the following disclaimer in the documentation 24 | // and/or other materials provided with the distribution. 25 | // 26 | // * The name of Intel Corporation may not be used to endorse or promote products 27 | // derived from this software without specific prior written permission. 28 | // 29 | // This software is provided by the copyright holders and contributors "as is" and 30 | // any express or implied warranties, including, but not limited to, the implied 31 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 32 | // In no event shall the Intel Corporation or contributors be liable for any direct, 33 | // indirect, incidental, special, exemplary, or consequential damages 34 | // (including, but not limited to, procurement of substitute goods or services; 35 | // loss of use, data, or profits; or business interruption) however caused 36 | // and on any theory of liability, whether in contract, strict liability, 37 | // or tort (including negligence or otherwise) arising in any way out of 38 | // the use of this software, even if advised of the possibility of such damage. 39 | // 40 | //M*/ 41 | 42 | #ifndef OPENCV_OLD_AUX_HPP 43 | #define OPENCV_OLD_AUX_HPP 44 | 45 | //#if defined(__GNUC__) 46 | //#warning "This is a deprecated opencv header provided for compatibility. Please include a header from a corresponding opencv module" 47 | //#endif 48 | 49 | #include "cvaux.h" 50 | #include "opencv2/core/utility.hpp" 51 | 52 | #endif 53 | -------------------------------------------------------------------------------- /include/opencv/cvwimage.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////// 2 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 3 | // 4 | // By downloading, copying, installing or using the software you agree to 5 | // this license. If you do not agree to this license, do not download, 6 | // install, copy or use the software. 7 | // 8 | // License Agreement 9 | // For Open Source Computer Vision Library 10 | // 11 | // Copyright (C) 2008, Google, all rights reserved. 12 | // Third party copyrights are property of their respective owners. 13 | // 14 | // Redistribution and use in source and binary forms, with or without 15 | // modification, are permitted provided that the following conditions are met: 16 | // 17 | // * Redistribution's of source code must retain the above copyright notice, 18 | // this list of conditions and the following disclaimer. 19 | // 20 | // * Redistribution's in binary form must reproduce the above copyright notice, 21 | // this list of conditions and the following disclaimer in the documentation 22 | // and/or other materials provided with the distribution. 23 | // 24 | // * The name of Intel Corporation or contributors may not be used to endorse 25 | // or promote products derived from this software without specific 26 | // prior written permission. 27 | // 28 | // This software is provided by the copyright holders and contributors "as is" 29 | // and any express or implied warranties, including, but not limited to, the 30 | // implied warranties of merchantability and fitness for a particular purpose 31 | // are disclaimed. In no event shall the Intel Corporation or contributors be 32 | // liable for any direct, indirect, incidental, special, exemplary, or 33 | // consequential damages 34 | // (including, but not limited to, procurement of substitute goods or services; 35 | // loss of use, data, or profits; or business interruption) however caused 36 | // and on any theory of liability, whether in contract, strict liability, 37 | // or tort (including negligence or otherwise) arising in any way out of 38 | // the use of this software, even if advised of the possibility of such damage. 39 | 40 | 41 | #ifndef OPENCV_OLD_WIMAGE_HPP 42 | #define OPENCV_OLD_WIMAGE_HPP 43 | 44 | #include "opencv2/core/wimage.hpp" 45 | 46 | #endif 47 | -------------------------------------------------------------------------------- /include/opencv/cxcore.h: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Third party copyrights are property of their respective owners. 16 | // 17 | // Redistribution and use in source and binary forms, with or without modification, 18 | // are permitted provided that the following conditions are met: 19 | // 20 | // * Redistribution's of source code must retain the above copyright notice, 21 | // this list of conditions and the following disclaimer. 22 | // 23 | // * Redistribution's in binary form must reproduce the above copyright notice, 24 | // this list of conditions and the following disclaimer in the documentation 25 | // and/or other materials provided with the distribution. 26 | // 27 | // * The name of the copyright holders may not be used to endorse or promote products 28 | // derived from this software without specific prior written permission. 29 | // 30 | // This software is provided by the copyright holders and contributors "as is" and 31 | // any express or implied warranties, including, but not limited to, the implied 32 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 33 | // In no event shall the Intel Corporation or contributors be liable for any direct, 34 | // indirect, incidental, special, exemplary, or consequential damages 35 | // (including, but not limited to, procurement of substitute goods or services; 36 | // loss of use, data, or profits; or business interruption) however caused 37 | // and on any theory of liability, whether in contract, strict liability, 38 | // or tort (including negligence or otherwise) arising in any way out of 39 | // the use of this software, even if advised of the possibility of such damage. 40 | // 41 | //M*/ 42 | 43 | #ifndef OPENCV_OLD_CXCORE_H 44 | #define OPENCV_OLD_CXCORE_H 45 | 46 | //#if defined(__GNUC__) 47 | //#warning "This is a deprecated opencv header provided for compatibility. Please include a header from a corresponding opencv module" 48 | //#endif 49 | 50 | #include "opencv2/core/core_c.h" 51 | 52 | #endif 53 | -------------------------------------------------------------------------------- /include/opencv/cxcore.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Third party copyrights are property of their respective owners. 16 | // 17 | // Redistribution and use in source and binary forms, with or without modification, 18 | // are permitted provided that the following conditions are met: 19 | // 20 | // * Redistribution's of source code must retain the above copyright notice, 21 | // this list of conditions and the following disclaimer. 22 | // 23 | // * Redistribution's in binary form must reproduce the above copyright notice, 24 | // this list of conditions and the following disclaimer in the documentation 25 | // and/or other materials provided with the distribution. 26 | // 27 | // * The name of the copyright holders may not be used to endorse or promote products 28 | // derived from this software without specific prior written permission. 29 | // 30 | // This software is provided by the copyright holders and contributors "as is" and 31 | // any express or implied warranties, including, but not limited to, the implied 32 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 33 | // In no event shall the Intel Corporation or contributors be liable for any direct, 34 | // indirect, incidental, special, exemplary, or consequential damages 35 | // (including, but not limited to, procurement of substitute goods or services; 36 | // loss of use, data, or profits; or business interruption) however caused 37 | // and on any theory of liability, whether in contract, strict liability, 38 | // or tort (including negligence or otherwise) arising in any way out of 39 | // the use of this software, even if advised of the possibility of such damage. 40 | // 41 | //M*/ 42 | 43 | #ifndef OPENCV_OLD_CXCORE_HPP 44 | #define OPENCV_OLD_CXCORE_HPP 45 | 46 | //#if defined(__GNUC__) 47 | //#warning "This is a deprecated opencv header provided for compatibility. Please include a header from a corresponding opencv module" 48 | //#endif 49 | 50 | #include "cxcore.h" 51 | #include "opencv2/core.hpp" 52 | 53 | #endif 54 | -------------------------------------------------------------------------------- /include/opencv/cxeigen.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Third party copyrights are property of their respective owners. 16 | // 17 | // Redistribution and use in source and binary forms, with or without modification, 18 | // are permitted provided that the following conditions are met: 19 | // 20 | // * Redistribution's of source code must retain the above copyright notice, 21 | // this list of conditions and the following disclaimer. 22 | // 23 | // * Redistribution's in binary form must reproduce the above copyright notice, 24 | // this list of conditions and the following disclaimer in the documentation 25 | // and/or other materials provided with the distribution. 26 | // 27 | // * The name of the copyright holders may not be used to endorse or promote products 28 | // derived from this software without specific prior written permission. 29 | // 30 | // This software is provided by the copyright holders and contributors "as is" and 31 | // any express or implied warranties, including, but not limited to, the implied 32 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 33 | // In no event shall the Intel Corporation or contributors be liable for any direct, 34 | // indirect, incidental, special, exemplary, or consequential damages 35 | // (including, but not limited to, procurement of substitute goods or services; 36 | // loss of use, data, or profits; or business interruption) however caused 37 | // and on any theory of liability, whether in contract, strict liability, 38 | // or tort (including negligence or otherwise) arising in any way out of 39 | // the use of this software, even if advised of the possibility of such damage. 40 | // 41 | //M*/ 42 | 43 | #ifndef OPENCV_OLD_EIGEN_HPP 44 | #define OPENCV_OLD_EIGEN_HPP 45 | 46 | #include "opencv2/core/eigen.hpp" 47 | 48 | #endif 49 | -------------------------------------------------------------------------------- /include/opencv/cxmisc.h: -------------------------------------------------------------------------------- 1 | #ifndef OPENCV_OLD_CXMISC_H 2 | #define OPENCV_OLD_CXMISC_H 3 | 4 | #ifdef __cplusplus 5 | # include "opencv2/core/utility.hpp" 6 | #endif 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /include/opencv/highgui.h: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // Intel License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000, Intel Corporation, all rights reserved. 14 | // Third party copyrights are property of their respective owners. 15 | // 16 | // Redistribution and use in source and binary forms, with or without modification, 17 | // are permitted provided that the following conditions are met: 18 | // 19 | // * Redistribution's of source code must retain the above copyright notice, 20 | // this list of conditions and the following disclaimer. 21 | // 22 | // * Redistribution's in binary form must reproduce the above copyright notice, 23 | // this list of conditions and the following disclaimer in the documentation 24 | // and/or other materials provided with the distribution. 25 | // 26 | // * The name of Intel Corporation may not be used to endorse or promote products 27 | // derived from this software without specific prior written permission. 28 | // 29 | // This software is provided by the copyright holders and contributors "as is" and 30 | // any express or implied warranties, including, but not limited to, the implied 31 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 32 | // In no event shall the Intel Corporation or contributors be liable for any direct, 33 | // indirect, incidental, special, exemplary, or consequential damages 34 | // (including, but not limited to, procurement of substitute goods or services; 35 | // loss of use, data, or profits; or business interruption) however caused 36 | // and on any theory of liability, whether in contract, strict liability, 37 | // or tort (including negligence or otherwise) arising in any way out of 38 | // the use of this software, even if advised of the possibility of such damage. 39 | // 40 | //M*/ 41 | 42 | #ifndef OPENCV_OLD_HIGHGUI_H 43 | #define OPENCV_OLD_HIGHGUI_H 44 | 45 | #include "opencv2/core/core_c.h" 46 | #include "opencv2/highgui/highgui_c.h" 47 | 48 | #endif 49 | -------------------------------------------------------------------------------- /include/opencv/ml.h: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // Intel License Agreement 11 | // 12 | // Copyright (C) 2000, Intel Corporation, all rights reserved. 13 | // Third party copyrights are property of their respective owners. 14 | // 15 | // Redistribution and use in source and binary forms, with or without modification, 16 | // are permitted provided that the following conditions are met: 17 | // 18 | // * Redistribution's of source code must retain the above copyright notice, 19 | // this list of conditions and the following disclaimer. 20 | // 21 | // * Redistribution's in binary form must reproduce the above copyright notice, 22 | // this list of conditions and the following disclaimer in the documentation 23 | // and/or other materials provided with the distribution. 24 | // 25 | // * The name of Intel Corporation may not be used to endorse or promote products 26 | // derived from this software without specific prior written permission. 27 | // 28 | // This software is provided by the copyright holders and contributors "as is" and 29 | // any express or implied warranties, including, but not limited to, the implied 30 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 31 | // In no event shall the Intel Corporation or contributors be liable for any direct, 32 | // indirect, incidental, special, exemplary, or consequential damages 33 | // (including, but not limited to, procurement of substitute goods or services; 34 | // loss of use, data, or profits; or business interruption) however caused 35 | // and on any theory of liability, whether in contract, strict liability, 36 | // or tort (including negligence or otherwise) arising in any way out of 37 | // the use of this software, even if advised of the possibility of such damage. 38 | // 39 | //M*/ 40 | 41 | #ifndef OPENCV_OLD_ML_H 42 | #define OPENCV_OLD_ML_H 43 | 44 | #include "opencv2/core/core_c.h" 45 | #include "opencv2/ml.hpp" 46 | 47 | #endif 48 | -------------------------------------------------------------------------------- /include/opencv2/bioinspired.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Third party copyrights are property of their respective owners. 16 | // 17 | // Redistribution and use in source and binary forms, with or without modification, 18 | // are permitted provided that the following conditions are met: 19 | // 20 | // * Redistribution's of source code must retain the above copyright notice, 21 | // this list of conditions and the following disclaimer. 22 | // 23 | // * Redistribution's in binary form must reproduce the above copyright notice, 24 | // this list of conditions and the following disclaimer in the documentation 25 | // and/or other materials provided with the distribution. 26 | // 27 | // * The name of the copyright holders may not be used to endorse or promote products 28 | // derived from this software without specific prior written permission. 29 | // 30 | // This software is provided by the copyright holders and contributors "as is" and 31 | // any express or implied warranties, including, but not limited to, the implied 32 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 33 | // In no event shall the Intel Corporation or contributors be liable for any direct, 34 | // indirect, incidental, special, exemplary, or consequential damages 35 | // (including, but not limited to, procurement of substitute goods or services; 36 | // loss of use, data, or profits; or business interruption) however caused 37 | // and on any theory of liability, whether in contract, strict liability, 38 | // or tort (including negligence or otherwise) arising in any way out of 39 | // the use of this software, even if advised of the possibility of such damage. 40 | // 41 | //M*/ 42 | 43 | #ifndef __OPENCV_BIOINSPIRED_HPP__ 44 | #define __OPENCV_BIOINSPIRED_HPP__ 45 | 46 | #include "opencv2/core.hpp" 47 | #include "opencv2/bioinspired/retina.hpp" 48 | #include "opencv2/bioinspired/retinafasttonemapping.hpp" 49 | #include "opencv2/bioinspired/transientareassegmentationmodule.hpp" 50 | 51 | /** @defgroup bioinspired Biologically inspired vision models and derivated tools 52 | 53 | The module provides biological visual systems models (human visual system and others). It also 54 | provides derivated objects that take advantage of those bio-inspired models. 55 | 56 | @ref bioinspired_retina 57 | 58 | */ 59 | 60 | #endif 61 | -------------------------------------------------------------------------------- /include/opencv2/bioinspired/bioinspired.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Copyright (C) 2013, OpenCV Foundation, all rights reserved. 16 | // Third party copyrights are property of their respective owners. 17 | // 18 | // Redistribution and use in source and binary forms, with or without modification, 19 | // are permitted provided that the following conditions are met: 20 | // 21 | // * Redistribution's of source code must retain the above copyright notice, 22 | // this list of conditions and the following disclaimer. 23 | // 24 | // * Redistribution's in binary form must reproduce the above copyright notice, 25 | // this list of conditions and the following disclaimer in the documentation 26 | // and/or other materials provided with the distribution. 27 | // 28 | // * The name of the copyright holders may not be used to endorse or promote products 29 | // derived from this software without specific prior written permission. 30 | // 31 | // This software is provided by the copyright holders and contributors "as is" and 32 | // any express or implied warranties, including, but not limited to, the implied 33 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 34 | // In no event shall the Intel Corporation or contributors be liable for any direct, 35 | // indirect, incidental, special, exemplary, or consequential damages 36 | // (including, but not limited to, procurement of substitute goods or services; 37 | // loss of use, data, or profits; or business interruption) however caused 38 | // and on any theory of liability, whether in contract, strict liability, 39 | // or tort (including negligence or otherwise) arising in any way out of 40 | // the use of this software, even if advised of the possibility of such damage. 41 | // 42 | //M*/ 43 | 44 | #ifdef __OPENCV_BUILD 45 | #error this is a compatibility header which should not be used inside the OpenCV library 46 | #endif 47 | 48 | #include "opencv2/bioinspired.hpp" 49 | -------------------------------------------------------------------------------- /include/opencv2/calib3d/calib3d.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Copyright (C) 2013, OpenCV Foundation, all rights reserved. 16 | // Third party copyrights are property of their respective owners. 17 | // 18 | // Redistribution and use in source and binary forms, with or without modification, 19 | // are permitted provided that the following conditions are met: 20 | // 21 | // * Redistribution's of source code must retain the above copyright notice, 22 | // this list of conditions and the following disclaimer. 23 | // 24 | // * Redistribution's in binary form must reproduce the above copyright notice, 25 | // this list of conditions and the following disclaimer in the documentation 26 | // and/or other materials provided with the distribution. 27 | // 28 | // * The name of the copyright holders may not be used to endorse or promote products 29 | // derived from this software without specific prior written permission. 30 | // 31 | // This software is provided by the copyright holders and contributors "as is" and 32 | // any express or implied warranties, including, but not limited to, the implied 33 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 34 | // In no event shall the Intel Corporation or contributors be liable for any direct, 35 | // indirect, incidental, special, exemplary, or consequential damages 36 | // (including, but not limited to, procurement of substitute goods or services; 37 | // loss of use, data, or profits; or business interruption) however caused 38 | // and on any theory of liability, whether in contract, strict liability, 39 | // or tort (including negligence or otherwise) arising in any way out of 40 | // the use of this software, even if advised of the possibility of such damage. 41 | // 42 | //M*/ 43 | 44 | #ifdef __OPENCV_BUILD 45 | #error this is a compatibility header which should not be used inside the OpenCV library 46 | #endif 47 | 48 | #include "opencv2/calib3d.hpp" 49 | -------------------------------------------------------------------------------- /include/opencv2/core/bufferpool.hpp: -------------------------------------------------------------------------------- 1 | // This file is part of OpenCV project. 2 | // It is subject to the license terms in the LICENSE file found in the top-level directory 3 | // of this distribution and at http://opencv.org/license.html. 4 | // 5 | // Copyright (C) 2014, Advanced Micro Devices, Inc., all rights reserved. 6 | 7 | #ifndef OPENCV_CORE_BUFFER_POOL_HPP 8 | #define OPENCV_CORE_BUFFER_POOL_HPP 9 | 10 | namespace cv 11 | { 12 | 13 | //! @addtogroup core 14 | //! @{ 15 | 16 | class BufferPoolController 17 | { 18 | protected: 19 | ~BufferPoolController() { } 20 | public: 21 | virtual size_t getReservedSize() const = 0; 22 | virtual size_t getMaxReservedSize() const = 0; 23 | virtual void setMaxReservedSize(size_t size) = 0; 24 | virtual void freeAllReservedBuffers() = 0; 25 | }; 26 | 27 | //! @} 28 | 29 | } 30 | 31 | #endif // OPENCV_CORE_BUFFER_POOL_HPP 32 | -------------------------------------------------------------------------------- /include/opencv2/core/core.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Copyright (C) 2013, OpenCV Foundation, all rights reserved. 16 | // Third party copyrights are property of their respective owners. 17 | // 18 | // Redistribution and use in source and binary forms, with or without modification, 19 | // are permitted provided that the following conditions are met: 20 | // 21 | // * Redistribution's of source code must retain the above copyright notice, 22 | // this list of conditions and the following disclaimer. 23 | // 24 | // * Redistribution's in binary form must reproduce the above copyright notice, 25 | // this list of conditions and the following disclaimer in the documentation 26 | // and/or other materials provided with the distribution. 27 | // 28 | // * The name of the copyright holders may not be used to endorse or promote products 29 | // derived from this software without specific prior written permission. 30 | // 31 | // This software is provided by the copyright holders and contributors "as is" and 32 | // any express or implied warranties, including, but not limited to, the implied 33 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 34 | // In no event shall the Intel Corporation or contributors be liable for any direct, 35 | // indirect, incidental, special, exemplary, or consequential damages 36 | // (including, but not limited to, procurement of substitute goods or services; 37 | // loss of use, data, or profits; or business interruption) however caused 38 | // and on any theory of liability, whether in contract, strict liability, 39 | // or tort (including negligence or otherwise) arising in any way out of 40 | // the use of this software, even if advised of the possibility of such damage. 41 | // 42 | //M*/ 43 | 44 | #ifdef __OPENCV_BUILD 45 | #error this is a compatibility header which should not be used inside the OpenCV library 46 | #endif 47 | 48 | #include "opencv2/core.hpp" 49 | -------------------------------------------------------------------------------- /include/opencv2/core/ocl_genbase.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2013, OpenCV Foundation, all rights reserved. 14 | // Third party copyrights are property of their respective owners. 15 | // 16 | // Redistribution and use in source and binary forms, with or without modification, 17 | // are permitted provided that the following conditions are met: 18 | // 19 | // * Redistribution's of source code must retain the above copyright notice, 20 | // this list of conditions and the following disclaimer. 21 | // 22 | // * Redistribution's in binary form must reproduce the above copyright notice, 23 | // this list of conditions and the following disclaimer in the documentation 24 | // and/or other materials provided with the distribution. 25 | // 26 | // * The name of the copyright holders may not be used to endorse or promote products 27 | // derived from this software without specific prior written permission. 28 | // 29 | // This software is provided by the copyright holders and contributors "as is" and 30 | // any express or implied warranties, including, but not limited to, the implied 31 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 32 | // In no event shall the OpenCV Foundation or contributors be liable for any direct, 33 | // indirect, incidental, special, exemplary, or consequential damages 34 | // (including, but not limited to, procurement of substitute goods or services; 35 | // loss of use, data, or profits; or business interruption) however caused 36 | // and on any theory of liability, whether in contract, strict liability, 37 | // or tort (including negligence or otherwise) arising in any way out of 38 | // the use of this software, even if advised of the possibility of such damage. 39 | // 40 | //M*/ 41 | 42 | #ifndef OPENCV_OPENCL_GENBASE_HPP 43 | #define OPENCV_OPENCL_GENBASE_HPP 44 | 45 | namespace cv 46 | { 47 | namespace ocl 48 | { 49 | 50 | //! @cond IGNORED 51 | 52 | struct ProgramEntry 53 | { 54 | const char* name; 55 | const char* programStr; 56 | const char* programHash; 57 | }; 58 | 59 | //! @endcond 60 | 61 | } 62 | } 63 | 64 | #endif 65 | -------------------------------------------------------------------------------- /include/opencv2/core/ovx.hpp: -------------------------------------------------------------------------------- 1 | // This file is part of OpenCV project. 2 | // It is subject to the license terms in the LICENSE file found in the top-level directory 3 | // of this distribution and at http://opencv.org/license.html. 4 | 5 | // Copyright (C) 2016, Intel Corporation, all rights reserved. 6 | // Third party copyrights are property of their respective owners. 7 | 8 | // OpenVX related definitions and declarations 9 | 10 | #pragma once 11 | #ifndef OPENCV_OVX_HPP 12 | #define OPENCV_OVX_HPP 13 | 14 | #include "cvdef.h" 15 | 16 | namespace cv 17 | { 18 | /// Check if use of OpenVX is possible 19 | CV_EXPORTS_W bool haveOpenVX(); 20 | 21 | /// Check if use of OpenVX is enabled 22 | CV_EXPORTS_W bool useOpenVX(); 23 | 24 | /// Enable/disable use of OpenVX 25 | CV_EXPORTS_W void setUseOpenVX(bool flag); 26 | } // namespace cv 27 | 28 | #endif // OPENCV_OVX_HPP 29 | -------------------------------------------------------------------------------- /include/opencv2/core/va_intel.hpp: -------------------------------------------------------------------------------- 1 | // This file is part of OpenCV project. 2 | // It is subject to the license terms in the LICENSE file found in the top-level directory 3 | // of this distribution and at http://opencv.org/license.html. 4 | 5 | // Copyright (C) 2015, Itseez, Inc., all rights reserved. 6 | // Third party copyrights are property of their respective owners. 7 | 8 | #ifndef OPENCV_CORE_VA_INTEL_HPP 9 | #define OPENCV_CORE_VA_INTEL_HPP 10 | 11 | #ifndef __cplusplus 12 | # error va_intel.hpp header must be compiled as C++ 13 | #endif 14 | 15 | #include "opencv2/core.hpp" 16 | #include "ocl.hpp" 17 | 18 | #if defined(HAVE_VA) 19 | # include "va/va.h" 20 | #else // HAVE_VA 21 | # if !defined(_VA_H_) 22 | typedef void* VADisplay; 23 | typedef unsigned int VASurfaceID; 24 | # endif // !_VA_H_ 25 | #endif // HAVE_VA 26 | 27 | namespace cv { namespace va_intel { 28 | 29 | /** @addtogroup core_va_intel 30 | This section describes Intel VA-API/OpenCL (CL-VA) interoperability. 31 | 32 | To enable CL-VA interoperability support, configure OpenCV using CMake with WITH_VA_INTEL=ON . Currently VA-API is 33 | supported on Linux only. You should also install Intel Media Server Studio (MSS) to use this feature. You may 34 | have to specify the path(s) to MSS components for cmake in environment variables: VA_INTEL_MSDK_ROOT for Media SDK 35 | (default is "/opt/intel/mediasdk"), and VA_INTEL_IOCL_ROOT for Intel OpenCL (default is "/opt/intel/opencl"). 36 | 37 | To use CL-VA interoperability you should first create VADisplay (libva), and then call initializeContextFromVA() 38 | function to create OpenCL context and set up interoperability. 39 | */ 40 | //! @{ 41 | 42 | /////////////////// CL-VA Interoperability Functions /////////////////// 43 | 44 | namespace ocl { 45 | using namespace cv::ocl; 46 | 47 | // TODO static functions in the Context class 48 | /** @brief Creates OpenCL context from VA. 49 | @param display - VADisplay for which CL interop should be established. 50 | @param tryInterop - try to set up for interoperability, if true; set up for use slow copy if false. 51 | @return Returns reference to OpenCL Context 52 | */ 53 | CV_EXPORTS Context& initializeContextFromVA(VADisplay display, bool tryInterop = true); 54 | 55 | } // namespace cv::va_intel::ocl 56 | 57 | /** @brief Converts InputArray to VASurfaceID object. 58 | @param display - VADisplay object. 59 | @param src - source InputArray. 60 | @param surface - destination VASurfaceID object. 61 | @param size - size of image represented by VASurfaceID object. 62 | */ 63 | CV_EXPORTS void convertToVASurface(VADisplay display, InputArray src, VASurfaceID surface, Size size); 64 | 65 | /** @brief Converts VASurfaceID object to OutputArray. 66 | @param display - VADisplay object. 67 | @param surface - source VASurfaceID object. 68 | @param size - size of image represented by VASurfaceID object. 69 | @param dst - destination OutputArray. 70 | */ 71 | CV_EXPORTS void convertFromVASurface(VADisplay display, VASurfaceID surface, Size size, OutputArray dst); 72 | 73 | //! @} 74 | 75 | }} // namespace cv::va_intel 76 | 77 | #endif /* OPENCV_CORE_VA_INTEL_HPP */ 78 | -------------------------------------------------------------------------------- /include/opencv2/datasets/ar_hmdb.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2014, Itseez Inc, all rights reserved. 14 | // Third party copyrights are property of their respective owners. 15 | // 16 | // Redistribution and use in source and binary forms, with or without modification, 17 | // are permitted provided that the following conditions are met: 18 | // 19 | // * Redistribution's of source code must retain the above copyright notice, 20 | // this list of conditions and the following disclaimer. 21 | // 22 | // * Redistribution's in binary form must reproduce the above copyright notice, 23 | // this list of conditions and the following disclaimer in the documentation 24 | // and/or other materials provided with the distribution. 25 | // 26 | // * The name of the copyright holders may not be used to endorse or promote products 27 | // derived from this software without specific prior written permission. 28 | // 29 | // This software is provided by the copyright holders and contributors "as is" and 30 | // any express or implied warranties, including, but not limited to, the implied 31 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 32 | // In no event shall the Itseez Inc or contributors be liable for any direct, 33 | // indirect, incidental, special, exemplary, or consequential damages 34 | // (including, but not limited to, procurement of substitute goods or services; 35 | // loss of use, data, or profits; or business interruption) however caused 36 | // and on any theory of liability, whether in contract, strict liability, 37 | // or tort (including negligence or otherwise) arising in any way out of 38 | // the use of this software, even if advised of the possibility of such damage. 39 | // 40 | //M*/ 41 | 42 | #ifndef OPENCV_DATASETS_AR_HMDB_HPP 43 | #define OPENCV_DATASETS_AR_HMDB_HPP 44 | 45 | #include 46 | #include 47 | 48 | #include "opencv2/datasets/dataset.hpp" 49 | 50 | #include 51 | 52 | namespace cv 53 | { 54 | namespace datasets 55 | { 56 | 57 | //! @addtogroup datasets_ar 58 | //! @{ 59 | 60 | struct AR_hmdbObj : public Object 61 | { 62 | int id; 63 | std::string name; 64 | std::string videoName; 65 | }; 66 | 67 | class CV_EXPORTS AR_hmdb : public Dataset 68 | { 69 | public: 70 | virtual void load(const std::string &path) = 0; 71 | 72 | static Ptr create(); 73 | }; 74 | 75 | //! @} 76 | 77 | } 78 | } 79 | 80 | #endif 81 | -------------------------------------------------------------------------------- /include/opencv2/datasets/ar_sports.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2014, Itseez Inc, all rights reserved. 14 | // Third party copyrights are property of their respective owners. 15 | // 16 | // Redistribution and use in source and binary forms, with or without modification, 17 | // are permitted provided that the following conditions are met: 18 | // 19 | // * Redistribution's of source code must retain the above copyright notice, 20 | // this list of conditions and the following disclaimer. 21 | // 22 | // * Redistribution's in binary form must reproduce the above copyright notice, 23 | // this list of conditions and the following disclaimer in the documentation 24 | // and/or other materials provided with the distribution. 25 | // 26 | // * The name of the copyright holders may not be used to endorse or promote products 27 | // derived from this software without specific prior written permission. 28 | // 29 | // This software is provided by the copyright holders and contributors "as is" and 30 | // any express or implied warranties, including, but not limited to, the implied 31 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 32 | // In no event shall the Itseez Inc or contributors be liable for any direct, 33 | // indirect, incidental, special, exemplary, or consequential damages 34 | // (including, but not limited to, procurement of substitute goods or services; 35 | // loss of use, data, or profits; or business interruption) however caused 36 | // and on any theory of liability, whether in contract, strict liability, 37 | // or tort (including negligence or otherwise) arising in any way out of 38 | // the use of this software, even if advised of the possibility of such damage. 39 | // 40 | //M*/ 41 | 42 | #ifndef OPENCV_DATASETS_AR_SPORTS_HPP 43 | #define OPENCV_DATASETS_AR_SPORTS_HPP 44 | 45 | #include 46 | #include 47 | 48 | #include "opencv2/datasets/dataset.hpp" 49 | 50 | #include 51 | 52 | namespace cv 53 | { 54 | namespace datasets 55 | { 56 | 57 | //! @addtogroup datasets_ar 58 | //! @{ 59 | 60 | struct AR_sportsObj : public Object 61 | { 62 | std::string videoUrl; 63 | std::vector labels; 64 | }; 65 | 66 | class CV_EXPORTS AR_sports : public Dataset 67 | { 68 | public: 69 | virtual void load(const std::string &path) = 0; 70 | 71 | static Ptr create(); 72 | }; 73 | 74 | //! @} 75 | 76 | } 77 | } 78 | 79 | #endif 80 | -------------------------------------------------------------------------------- /include/opencv2/datasets/fr_lfw.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2014, Itseez Inc, all rights reserved. 14 | // Third party copyrights are property of their respective owners. 15 | // 16 | // Redistribution and use in source and binary forms, with or without modification, 17 | // are permitted provided that the following conditions are met: 18 | // 19 | // * Redistribution's of source code must retain the above copyright notice, 20 | // this list of conditions and the following disclaimer. 21 | // 22 | // * Redistribution's in binary form must reproduce the above copyright notice, 23 | // this list of conditions and the following disclaimer in the documentation 24 | // and/or other materials provided with the distribution. 25 | // 26 | // * The name of the copyright holders may not be used to endorse or promote products 27 | // derived from this software without specific prior written permission. 28 | // 29 | // This software is provided by the copyright holders and contributors "as is" and 30 | // any express or implied warranties, including, but not limited to, the implied 31 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 32 | // In no event shall the Itseez Inc or contributors be liable for any direct, 33 | // indirect, incidental, special, exemplary, or consequential damages 34 | // (including, but not limited to, procurement of substitute goods or services; 35 | // loss of use, data, or profits; or business interruption) however caused 36 | // and on any theory of liability, whether in contract, strict liability, 37 | // or tort (including negligence or otherwise) arising in any way out of 38 | // the use of this software, even if advised of the possibility of such damage. 39 | // 40 | //M*/ 41 | 42 | #ifndef OPENCV_DATASETS_FR_LFW_HPP 43 | #define OPENCV_DATASETS_FR_LFW_HPP 44 | 45 | #include 46 | #include 47 | 48 | #include "opencv2/datasets/dataset.hpp" 49 | 50 | #include 51 | 52 | namespace cv 53 | { 54 | namespace datasets 55 | { 56 | 57 | //! @addtogroup datasets_fr 58 | //! @{ 59 | 60 | struct FR_lfwObj : public Object 61 | { 62 | std::string image1, image2; 63 | bool same; 64 | }; 65 | 66 | class CV_EXPORTS FR_lfw : public Dataset 67 | { 68 | public: 69 | virtual void load(const std::string &path) = 0; 70 | 71 | static Ptr create(); 72 | }; 73 | 74 | //! @} 75 | 76 | } 77 | } 78 | 79 | #endif 80 | -------------------------------------------------------------------------------- /include/opencv2/datasets/hpe_humaneva.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2014, Itseez Inc, all rights reserved. 14 | // Third party copyrights are property of their respective owners. 15 | // 16 | // Redistribution and use in source and binary forms, with or without modification, 17 | // are permitted provided that the following conditions are met: 18 | // 19 | // * Redistribution's of source code must retain the above copyright notice, 20 | // this list of conditions and the following disclaimer. 21 | // 22 | // * Redistribution's in binary form must reproduce the above copyright notice, 23 | // this list of conditions and the following disclaimer in the documentation 24 | // and/or other materials provided with the distribution. 25 | // 26 | // * The name of the copyright holders may not be used to endorse or promote products 27 | // derived from this software without specific prior written permission. 28 | // 29 | // This software is provided by the copyright holders and contributors "as is" and 30 | // any express or implied warranties, including, but not limited to, the implied 31 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 32 | // In no event shall the Itseez Inc or contributors be liable for any direct, 33 | // indirect, incidental, special, exemplary, or consequential damages 34 | // (including, but not limited to, procurement of substitute goods or services; 35 | // loss of use, data, or profits; or business interruption) however caused 36 | // and on any theory of liability, whether in contract, strict liability, 37 | // or tort (including negligence or otherwise) arising in any way out of 38 | // the use of this software, even if advised of the possibility of such damage. 39 | // 40 | //M*/ 41 | 42 | #ifndef OPENCV_DATASETS_HPE_HUMANEVA_HPP 43 | #define OPENCV_DATASETS_HPE_HUMANEVA_HPP 44 | 45 | #include 46 | #include 47 | 48 | #include "opencv2/datasets/dataset.hpp" 49 | 50 | #include 51 | 52 | namespace cv 53 | { 54 | namespace datasets 55 | { 56 | 57 | //! @addtogroup datasets_hpe 58 | //! @{ 59 | 60 | struct HPE_humanevaObj : public Object 61 | { 62 | char person; // 1..4 63 | std::string action; 64 | int type1; 65 | std::string type2; 66 | Matx13d ofs; 67 | std::string fileName; 68 | std::vector imageNames; // for HumanEva_II 69 | }; 70 | 71 | enum datasetType 72 | { 73 | humaneva_1 = 1, 74 | humaneva_2 75 | }; 76 | 77 | class CV_EXPORTS HPE_humaneva : public Dataset 78 | { 79 | public: 80 | virtual void load(const std::string &path) = 0; 81 | 82 | static Ptr create(int num=humaneva_1); 83 | }; 84 | 85 | //! @} 86 | 87 | } 88 | } 89 | 90 | #endif 91 | -------------------------------------------------------------------------------- /include/opencv2/datasets/hpe_parse.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2014, Itseez Inc, all rights reserved. 14 | // Third party copyrights are property of their respective owners. 15 | // 16 | // Redistribution and use in source and binary forms, with or without modification, 17 | // are permitted provided that the following conditions are met: 18 | // 19 | // * Redistribution's of source code must retain the above copyright notice, 20 | // this list of conditions and the following disclaimer. 21 | // 22 | // * Redistribution's in binary form must reproduce the above copyright notice, 23 | // this list of conditions and the following disclaimer in the documentation 24 | // and/or other materials provided with the distribution. 25 | // 26 | // * The name of the copyright holders may not be used to endorse or promote products 27 | // derived from this software without specific prior written permission. 28 | // 29 | // This software is provided by the copyright holders and contributors "as is" and 30 | // any express or implied warranties, including, but not limited to, the implied 31 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 32 | // In no event shall the Itseez Inc or contributors be liable for any direct, 33 | // indirect, incidental, special, exemplary, or consequential damages 34 | // (including, but not limited to, procurement of substitute goods or services; 35 | // loss of use, data, or profits; or business interruption) however caused 36 | // and on any theory of liability, whether in contract, strict liability, 37 | // or tort (including negligence or otherwise) arising in any way out of 38 | // the use of this software, even if advised of the possibility of such damage. 39 | // 40 | //M*/ 41 | 42 | #ifndef OPENCV_DATASETS_HPE_PARSE_HPP 43 | #define OPENCV_DATASETS_HPE_PARSE_HPP 44 | 45 | #include 46 | #include 47 | 48 | #include "opencv2/datasets/dataset.hpp" 49 | 50 | #include 51 | 52 | namespace cv 53 | { 54 | namespace datasets 55 | { 56 | 57 | //! @addtogroup datasets_hpe 58 | //! @{ 59 | 60 | struct HPE_parseObj : public Object 61 | { 62 | std::string name; 63 | }; 64 | 65 | class CV_EXPORTS HPE_parse : public Dataset 66 | { 67 | public: 68 | virtual void load(const std::string &path) = 0; 69 | 70 | static Ptr create(); 71 | }; 72 | 73 | //! @} 74 | 75 | } 76 | } 77 | 78 | #endif 79 | -------------------------------------------------------------------------------- /include/opencv2/datasets/ir_affine.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2014, Itseez Inc, all rights reserved. 14 | // Third party copyrights are property of their respective owners. 15 | // 16 | // Redistribution and use in source and binary forms, with or without modification, 17 | // are permitted provided that the following conditions are met: 18 | // 19 | // * Redistribution's of source code must retain the above copyright notice, 20 | // this list of conditions and the following disclaimer. 21 | // 22 | // * Redistribution's in binary form must reproduce the above copyright notice, 23 | // this list of conditions and the following disclaimer in the documentation 24 | // and/or other materials provided with the distribution. 25 | // 26 | // * The name of the copyright holders may not be used to endorse or promote products 27 | // derived from this software without specific prior written permission. 28 | // 29 | // This software is provided by the copyright holders and contributors "as is" and 30 | // any express or implied warranties, including, but not limited to, the implied 31 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 32 | // In no event shall the Itseez Inc or contributors be liable for any direct, 33 | // indirect, incidental, special, exemplary, or consequential damages 34 | // (including, but not limited to, procurement of substitute goods or services; 35 | // loss of use, data, or profits; or business interruption) however caused 36 | // and on any theory of liability, whether in contract, strict liability, 37 | // or tort (including negligence or otherwise) arising in any way out of 38 | // the use of this software, even if advised of the possibility of such damage. 39 | // 40 | //M*/ 41 | 42 | #ifndef OPENCV_DATASETS_IR_AFFINE_HPP 43 | #define OPENCV_DATASETS_IR_AFFINE_HPP 44 | 45 | #include 46 | #include 47 | 48 | #include "opencv2/datasets/dataset.hpp" 49 | 50 | #include 51 | #include 52 | 53 | namespace cv 54 | { 55 | namespace datasets 56 | { 57 | 58 | //! @addtogroup datasets_ir 59 | //! @{ 60 | 61 | struct IR_affineObj : public Object 62 | { 63 | std::string imageName; 64 | Matx33d mat; 65 | }; 66 | 67 | class CV_EXPORTS IR_affine : public Dataset 68 | { 69 | public: 70 | virtual void load(const std::string &path) = 0; 71 | 72 | static Ptr create(); 73 | }; 74 | 75 | //! @} 76 | 77 | } 78 | } 79 | 80 | #endif 81 | -------------------------------------------------------------------------------- /include/opencv2/datasets/ir_robot.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2014, Itseez Inc, all rights reserved. 14 | // Third party copyrights are property of their respective owners. 15 | // 16 | // Redistribution and use in source and binary forms, with or without modification, 17 | // are permitted provided that the following conditions are met: 18 | // 19 | // * Redistribution's of source code must retain the above copyright notice, 20 | // this list of conditions and the following disclaimer. 21 | // 22 | // * Redistribution's in binary form must reproduce the above copyright notice, 23 | // this list of conditions and the following disclaimer in the documentation 24 | // and/or other materials provided with the distribution. 25 | // 26 | // * The name of the copyright holders may not be used to endorse or promote products 27 | // derived from this software without specific prior written permission. 28 | // 29 | // This software is provided by the copyright holders and contributors "as is" and 30 | // any express or implied warranties, including, but not limited to, the implied 31 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 32 | // In no event shall the Itseez Inc or contributors be liable for any direct, 33 | // indirect, incidental, special, exemplary, or consequential damages 34 | // (including, but not limited to, procurement of substitute goods or services; 35 | // loss of use, data, or profits; or business interruption) however caused 36 | // and on any theory of liability, whether in contract, strict liability, 37 | // or tort (including negligence or otherwise) arising in any way out of 38 | // the use of this software, even if advised of the possibility of such damage. 39 | // 40 | //M*/ 41 | 42 | #ifndef OPENCV_DATASETS_IR_ROBOT_HPP 43 | #define OPENCV_DATASETS_IR_ROBOT_HPP 44 | 45 | #include 46 | #include 47 | 48 | #include "opencv2/datasets/dataset.hpp" 49 | 50 | #include 51 | 52 | namespace cv 53 | { 54 | namespace datasets 55 | { 56 | 57 | //! @addtogroup datasets_ir 58 | //! @{ 59 | 60 | // calibration matrix from calibrationFile.mat 61 | // 2.8290e+03 0.0000e+00 8.0279e+02 62 | // 0.0000e+00 2.8285e+03 6.1618e+02 63 | // 0.0000e+00 0.0000e+00 1.0000e+00 64 | 65 | struct cameraPos 66 | { 67 | std::vector images; 68 | }; 69 | 70 | struct IR_robotObj : public Object 71 | { 72 | std::string name; 73 | std::vector pos; 74 | }; 75 | 76 | class CV_EXPORTS IR_robot : public Dataset 77 | { 78 | public: 79 | virtual void load(const std::string &path) = 0; 80 | 81 | static Ptr create(); 82 | }; 83 | 84 | //! @} 85 | 86 | } 87 | } 88 | 89 | #endif 90 | -------------------------------------------------------------------------------- /include/opencv2/datasets/is_bsds.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2014, Itseez Inc, all rights reserved. 14 | // Third party copyrights are property of their respective owners. 15 | // 16 | // Redistribution and use in source and binary forms, with or without modification, 17 | // are permitted provided that the following conditions are met: 18 | // 19 | // * Redistribution's of source code must retain the above copyright notice, 20 | // this list of conditions and the following disclaimer. 21 | // 22 | // * Redistribution's in binary form must reproduce the above copyright notice, 23 | // this list of conditions and the following disclaimer in the documentation 24 | // and/or other materials provided with the distribution. 25 | // 26 | // * The name of the copyright holders may not be used to endorse or promote products 27 | // derived from this software without specific prior written permission. 28 | // 29 | // This software is provided by the copyright holders and contributors "as is" and 30 | // any express or implied warranties, including, but not limited to, the implied 31 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 32 | // In no event shall the Itseez Inc or contributors be liable for any direct, 33 | // indirect, incidental, special, exemplary, or consequential damages 34 | // (including, but not limited to, procurement of substitute goods or services; 35 | // loss of use, data, or profits; or business interruption) however caused 36 | // and on any theory of liability, whether in contract, strict liability, 37 | // or tort (including negligence or otherwise) arising in any way out of 38 | // the use of this software, even if advised of the possibility of such damage. 39 | // 40 | //M*/ 41 | 42 | #ifndef OPENCV_DATASETS_IS_BSDS_HPP 43 | #define OPENCV_DATASETS_IS_BSDS_HPP 44 | 45 | #include 46 | #include 47 | 48 | #include "opencv2/datasets/dataset.hpp" 49 | 50 | #include 51 | 52 | namespace cv 53 | { 54 | namespace datasets 55 | { 56 | 57 | //! @addtogroup datasets_is 58 | //! @{ 59 | 60 | struct IS_bsdsObj : public Object 61 | { 62 | std::string name; 63 | }; 64 | 65 | class CV_EXPORTS IS_bsds : public Dataset 66 | { 67 | public: 68 | virtual void load(const std::string &path) = 0; 69 | 70 | static Ptr create(); 71 | }; 72 | 73 | //! @} 74 | 75 | } 76 | } 77 | 78 | #endif 79 | -------------------------------------------------------------------------------- /include/opencv2/datasets/is_weizmann.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2014, Itseez Inc, all rights reserved. 14 | // Third party copyrights are property of their respective owners. 15 | // 16 | // Redistribution and use in source and binary forms, with or without modification, 17 | // are permitted provided that the following conditions are met: 18 | // 19 | // * Redistribution's of source code must retain the above copyright notice, 20 | // this list of conditions and the following disclaimer. 21 | // 22 | // * Redistribution's in binary form must reproduce the above copyright notice, 23 | // this list of conditions and the following disclaimer in the documentation 24 | // and/or other materials provided with the distribution. 25 | // 26 | // * The name of the copyright holders may not be used to endorse or promote products 27 | // derived from this software without specific prior written permission. 28 | // 29 | // This software is provided by the copyright holders and contributors "as is" and 30 | // any express or implied warranties, including, but not limited to, the implied 31 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 32 | // In no event shall the Itseez Inc or contributors be liable for any direct, 33 | // indirect, incidental, special, exemplary, or consequential damages 34 | // (including, but not limited to, procurement of substitute goods or services; 35 | // loss of use, data, or profits; or business interruption) however caused 36 | // and on any theory of liability, whether in contract, strict liability, 37 | // or tort (including negligence or otherwise) arising in any way out of 38 | // the use of this software, even if advised of the possibility of such damage. 39 | // 40 | //M*/ 41 | 42 | #ifndef OPENCV_DATASETS_IS_WEIZMANN_HPP 43 | #define OPENCV_DATASETS_IS_WEIZMANN_HPP 44 | 45 | #include 46 | #include 47 | 48 | #include "opencv2/datasets/dataset.hpp" 49 | 50 | #include 51 | 52 | namespace cv 53 | { 54 | namespace datasets 55 | { 56 | 57 | //! @addtogroup datasets_is 58 | //! @{ 59 | 60 | struct IS_weizmannObj : public Object 61 | { 62 | std::string imageName; 63 | std::string srcBw; 64 | std::string srcColor; 65 | std::string humanSeg; // TODO: read human segmented 66 | }; 67 | 68 | class CV_EXPORTS IS_weizmann : public Dataset 69 | { 70 | public: 71 | virtual void load(const std::string &path) = 0; 72 | 73 | static Ptr create(); 74 | }; 75 | 76 | //! @} 77 | 78 | } 79 | } 80 | 81 | #endif 82 | -------------------------------------------------------------------------------- /include/opencv2/datasets/msm_epfl.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2014, Itseez Inc, all rights reserved. 14 | // Third party copyrights are property of their respective owners. 15 | // 16 | // Redistribution and use in source and binary forms, with or without modification, 17 | // are permitted provided that the following conditions are met: 18 | // 19 | // * Redistribution's of source code must retain the above copyright notice, 20 | // this list of conditions and the following disclaimer. 21 | // 22 | // * Redistribution's in binary form must reproduce the above copyright notice, 23 | // this list of conditions and the following disclaimer in the documentation 24 | // and/or other materials provided with the distribution. 25 | // 26 | // * The name of the copyright holders may not be used to endorse or promote products 27 | // derived from this software without specific prior written permission. 28 | // 29 | // This software is provided by the copyright holders and contributors "as is" and 30 | // any express or implied warranties, including, but not limited to, the implied 31 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 32 | // In no event shall the Itseez Inc or contributors be liable for any direct, 33 | // indirect, incidental, special, exemplary, or consequential damages 34 | // (including, but not limited to, procurement of substitute goods or services; 35 | // loss of use, data, or profits; or business interruption) however caused 36 | // and on any theory of liability, whether in contract, strict liability, 37 | // or tort (including negligence or otherwise) arising in any way out of 38 | // the use of this software, even if advised of the possibility of such damage. 39 | // 40 | //M*/ 41 | 42 | #ifndef OPENCV_DATASETS_MSM_EPFL_HPP 43 | #define OPENCV_DATASETS_MSM_EPFL_HPP 44 | 45 | #include 46 | #include 47 | 48 | #include "opencv2/datasets/dataset.hpp" 49 | 50 | #include 51 | 52 | namespace cv 53 | { 54 | namespace datasets 55 | { 56 | 57 | //! @addtogroup datasets_msm 58 | //! @{ 59 | 60 | struct cameraParam 61 | { 62 | Matx33d mat1; 63 | double mat2[3]; 64 | Matx33d mat3; 65 | double mat4[3]; 66 | int imageWidth, imageHeight; 67 | }; 68 | 69 | struct MSM_epflObj : public Object 70 | { 71 | std::string imageName; 72 | Matx23d bounding; 73 | Matx34d p; 74 | cameraParam camera; 75 | }; 76 | 77 | class CV_EXPORTS MSM_epfl : public Dataset 78 | { 79 | public: 80 | virtual void load(const std::string &path) = 0; 81 | 82 | static Ptr create(); 83 | }; 84 | 85 | //! @} 86 | 87 | } 88 | } 89 | 90 | #endif 91 | -------------------------------------------------------------------------------- /include/opencv2/datasets/msm_middlebury.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2014, Itseez Inc, all rights reserved. 14 | // Third party copyrights are property of their respective owners. 15 | // 16 | // Redistribution and use in source and binary forms, with or without modification, 17 | // are permitted provided that the following conditions are met: 18 | // 19 | // * Redistribution's of source code must retain the above copyright notice, 20 | // this list of conditions and the following disclaimer. 21 | // 22 | // * Redistribution's in binary form must reproduce the above copyright notice, 23 | // this list of conditions and the following disclaimer in the documentation 24 | // and/or other materials provided with the distribution. 25 | // 26 | // * The name of the copyright holders may not be used to endorse or promote products 27 | // derived from this software without specific prior written permission. 28 | // 29 | // This software is provided by the copyright holders and contributors "as is" and 30 | // any express or implied warranties, including, but not limited to, the implied 31 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 32 | // In no event shall the Itseez Inc or contributors be liable for any direct, 33 | // indirect, incidental, special, exemplary, or consequential damages 34 | // (including, but not limited to, procurement of substitute goods or services; 35 | // loss of use, data, or profits; or business interruption) however caused 36 | // and on any theory of liability, whether in contract, strict liability, 37 | // or tort (including negligence or otherwise) arising in any way out of 38 | // the use of this software, even if advised of the possibility of such damage. 39 | // 40 | //M*/ 41 | 42 | #ifndef OPENCV_DATASETS_MSM_MIDDLEBURY_HPP 43 | #define OPENCV_DATASETS_MSM_MIDDLEBURY_HPP 44 | 45 | #include 46 | #include 47 | 48 | #include "opencv2/datasets/dataset.hpp" 49 | 50 | #include 51 | 52 | namespace cv 53 | { 54 | namespace datasets 55 | { 56 | 57 | //! @addtogroup datasets_msm 58 | //! @{ 59 | 60 | struct MSM_middleburyObj : public Object 61 | { 62 | std::string imageName; 63 | Matx33d k; 64 | Matx33d r; 65 | double t[3]; 66 | }; 67 | 68 | class CV_EXPORTS MSM_middlebury : public Dataset 69 | { 70 | public: 71 | virtual void load(const std::string &path) = 0; 72 | 73 | static Ptr create(); 74 | }; 75 | 76 | //! @} 77 | 78 | } 79 | } 80 | 81 | #endif 82 | -------------------------------------------------------------------------------- /include/opencv2/datasets/or_imagenet.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2014, Itseez Inc, all rights reserved. 14 | // Third party copyrights are property of their respective owners. 15 | // 16 | // Redistribution and use in source and binary forms, with or without modification, 17 | // are permitted provided that the following conditions are met: 18 | // 19 | // * Redistribution's of source code must retain the above copyright notice, 20 | // this list of conditions and the following disclaimer. 21 | // 22 | // * Redistribution's in binary form must reproduce the above copyright notice, 23 | // this list of conditions and the following disclaimer in the documentation 24 | // and/or other materials provided with the distribution. 25 | // 26 | // * The name of the copyright holders may not be used to endorse or promote products 27 | // derived from this software without specific prior written permission. 28 | // 29 | // This software is provided by the copyright holders and contributors "as is" and 30 | // any express or implied warranties, including, but not limited to, the implied 31 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 32 | // In no event shall the Itseez Inc or contributors be liable for any direct, 33 | // indirect, incidental, special, exemplary, or consequential damages 34 | // (including, but not limited to, procurement of substitute goods or services; 35 | // loss of use, data, or profits; or business interruption) however caused 36 | // and on any theory of liability, whether in contract, strict liability, 37 | // or tort (including negligence or otherwise) arising in any way out of 38 | // the use of this software, even if advised of the possibility of such damage. 39 | // 40 | //M*/ 41 | 42 | #ifndef OPENCV_DATASETS_OR_IMAGENET_HPP 43 | #define OPENCV_DATASETS_OR_IMAGENET_HPP 44 | 45 | #include 46 | #include 47 | 48 | #include "opencv2/datasets/dataset.hpp" 49 | 50 | #include 51 | 52 | namespace cv 53 | { 54 | namespace datasets 55 | { 56 | 57 | //! @addtogroup datasets_or 58 | //! @{ 59 | 60 | struct OR_imagenetObj : public Object 61 | { 62 | int id; 63 | std::string image; 64 | }; 65 | 66 | class CV_EXPORTS OR_imagenet : public Dataset 67 | { 68 | public: 69 | virtual void load(const std::string &path) = 0; 70 | 71 | static Ptr create(); 72 | }; 73 | 74 | //! @} 75 | 76 | } 77 | } 78 | 79 | #endif 80 | -------------------------------------------------------------------------------- /include/opencv2/datasets/or_mnist.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2014, Itseez Inc, all rights reserved. 14 | // Third party copyrights are property of their respective owners. 15 | // 16 | // Redistribution and use in source and binary forms, with or without modification, 17 | // are permitted provided that the following conditions are met: 18 | // 19 | // * Redistribution's of source code must retain the above copyright notice, 20 | // this list of conditions and the following disclaimer. 21 | // 22 | // * Redistribution's in binary form must reproduce the above copyright notice, 23 | // this list of conditions and the following disclaimer in the documentation 24 | // and/or other materials provided with the distribution. 25 | // 26 | // * The name of the copyright holders may not be used to endorse or promote products 27 | // derived from this software without specific prior written permission. 28 | // 29 | // This software is provided by the copyright holders and contributors "as is" and 30 | // any express or implied warranties, including, but not limited to, the implied 31 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 32 | // In no event shall the Itseez Inc or contributors be liable for any direct, 33 | // indirect, incidental, special, exemplary, or consequential damages 34 | // (including, but not limited to, procurement of substitute goods or services; 35 | // loss of use, data, or profits; or business interruption) however caused 36 | // and on any theory of liability, whether in contract, strict liability, 37 | // or tort (including negligence or otherwise) arising in any way out of 38 | // the use of this software, even if advised of the possibility of such damage. 39 | // 40 | //M*/ 41 | 42 | #ifndef OPENCV_DATASETS_OR_MNIST_HPP 43 | #define OPENCV_DATASETS_OR_MNIST_HPP 44 | 45 | #include 46 | #include 47 | 48 | #include "opencv2/datasets/dataset.hpp" 49 | 50 | #include 51 | 52 | namespace cv 53 | { 54 | namespace datasets 55 | { 56 | 57 | //! @addtogroup datasets_or 58 | //! @{ 59 | 60 | struct OR_mnistObj : public Object 61 | { 62 | char label; // 0..9 63 | Mat image; // [28][28] 64 | }; 65 | 66 | class CV_EXPORTS OR_mnist : public Dataset 67 | { 68 | public: 69 | virtual void load(const std::string &path) = 0; 70 | 71 | static Ptr create(); 72 | }; 73 | 74 | //! @} 75 | 76 | } 77 | } 78 | 79 | #endif 80 | -------------------------------------------------------------------------------- /include/opencv2/datasets/or_sun.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2014, Itseez Inc, all rights reserved. 14 | // Third party copyrights are property of their respective owners. 15 | // 16 | // Redistribution and use in source and binary forms, with or without modification, 17 | // are permitted provided that the following conditions are met: 18 | // 19 | // * Redistribution's of source code must retain the above copyright notice, 20 | // this list of conditions and the following disclaimer. 21 | // 22 | // * Redistribution's in binary form must reproduce the above copyright notice, 23 | // this list of conditions and the following disclaimer in the documentation 24 | // and/or other materials provided with the distribution. 25 | // 26 | // * The name of the copyright holders may not be used to endorse or promote products 27 | // derived from this software without specific prior written permission. 28 | // 29 | // This software is provided by the copyright holders and contributors "as is" and 30 | // any express or implied warranties, including, but not limited to, the implied 31 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 32 | // In no event shall the Itseez Inc or contributors be liable for any direct, 33 | // indirect, incidental, special, exemplary, or consequential damages 34 | // (including, but not limited to, procurement of substitute goods or services; 35 | // loss of use, data, or profits; or business interruption) however caused 36 | // and on any theory of liability, whether in contract, strict liability, 37 | // or tort (including negligence or otherwise) arising in any way out of 38 | // the use of this software, even if advised of the possibility of such damage. 39 | // 40 | //M*/ 41 | 42 | #ifndef OPENCV_DATASETS_OR_SUN_HPP 43 | #define OPENCV_DATASETS_OR_SUN_HPP 44 | 45 | #include 46 | #include 47 | 48 | #include "opencv2/datasets/dataset.hpp" 49 | 50 | #include 51 | 52 | namespace cv 53 | { 54 | namespace datasets 55 | { 56 | 57 | //! @addtogroup datasets_or 58 | //! @{ 59 | 60 | struct OR_sunObj : public Object 61 | { 62 | int label; 63 | std::string name; 64 | }; 65 | 66 | class CV_EXPORTS OR_sun : public Dataset 67 | { 68 | public: 69 | virtual void load(const std::string &path) = 0; 70 | 71 | static Ptr create(); 72 | 73 | std::vector paths; 74 | }; 75 | 76 | //! @} 77 | 78 | } 79 | } 80 | 81 | #endif 82 | -------------------------------------------------------------------------------- /include/opencv2/datasets/slam_kitti.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2014, Itseez Inc, all rights reserved. 14 | // Third party copyrights are property of their respective owners. 15 | // 16 | // Redistribution and use in source and binary forms, with or without modification, 17 | // are permitted provided that the following conditions are met: 18 | // 19 | // * Redistribution's of source code must retain the above copyright notice, 20 | // this list of conditions and the following disclaimer. 21 | // 22 | // * Redistribution's in binary form must reproduce the above copyright notice, 23 | // this list of conditions and the following disclaimer in the documentation 24 | // and/or other materials provided with the distribution. 25 | // 26 | // * The name of the copyright holders may not be used to endorse or promote products 27 | // derived from this software without specific prior written permission. 28 | // 29 | // This software is provided by the copyright holders and contributors "as is" and 30 | // any express or implied warranties, including, but not limited to, the implied 31 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 32 | // In no event shall the Itseez Inc or contributors be liable for any direct, 33 | // indirect, incidental, special, exemplary, or consequential damages 34 | // (including, but not limited to, procurement of substitute goods or services; 35 | // loss of use, data, or profits; or business interruption) however caused 36 | // and on any theory of liability, whether in contract, strict liability, 37 | // or tort (including negligence or otherwise) arising in any way out of 38 | // the use of this software, even if advised of the possibility of such damage. 39 | // 40 | //M*/ 41 | 42 | #ifndef OPENCV_DATASETS_SLAM_KITTI_HPP 43 | #define OPENCV_DATASETS_SLAM_KITTI_HPP 44 | 45 | #include 46 | #include 47 | 48 | #include "opencv2/datasets/dataset.hpp" 49 | 50 | #include 51 | 52 | namespace cv 53 | { 54 | namespace datasets 55 | { 56 | 57 | //! @addtogroup datasets_slam 58 | //! @{ 59 | 60 | struct pose 61 | { 62 | double elem[12]; 63 | }; 64 | 65 | struct SLAM_kittiObj : public Object 66 | { 67 | std::string name; 68 | std::vector images[4]; 69 | std::vector velodyne; 70 | std::vector times, p[4]; 71 | std::vector posesArray; 72 | }; 73 | 74 | class CV_EXPORTS SLAM_kitti : public Dataset 75 | { 76 | public: 77 | virtual void load(const std::string &path) = 0; 78 | 79 | static Ptr create(); 80 | }; 81 | 82 | //! @} 83 | 84 | } 85 | } 86 | 87 | #endif 88 | -------------------------------------------------------------------------------- /include/opencv2/datasets/slam_tumindoor.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2014, Itseez Inc, all rights reserved. 14 | // Third party copyrights are property of their respective owners. 15 | // 16 | // Redistribution and use in source and binary forms, with or without modification, 17 | // are permitted provided that the following conditions are met: 18 | // 19 | // * Redistribution's of source code must retain the above copyright notice, 20 | // this list of conditions and the following disclaimer. 21 | // 22 | // * Redistribution's in binary form must reproduce the above copyright notice, 23 | // this list of conditions and the following disclaimer in the documentation 24 | // and/or other materials provided with the distribution. 25 | // 26 | // * The name of the copyright holders may not be used to endorse or promote products 27 | // derived from this software without specific prior written permission. 28 | // 29 | // This software is provided by the copyright holders and contributors "as is" and 30 | // any express or implied warranties, including, but not limited to, the implied 31 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 32 | // In no event shall the Itseez Inc or contributors be liable for any direct, 33 | // indirect, incidental, special, exemplary, or consequential damages 34 | // (including, but not limited to, procurement of substitute goods or services; 35 | // loss of use, data, or profits; or business interruption) however caused 36 | // and on any theory of liability, whether in contract, strict liability, 37 | // or tort (including negligence or otherwise) arising in any way out of 38 | // the use of this software, even if advised of the possibility of such damage. 39 | // 40 | //M*/ 41 | 42 | #ifndef OPENCV_DATASETS_SLAM_TUMINDOOR_HPP 43 | #define OPENCV_DATASETS_SLAM_TUMINDOOR_HPP 44 | 45 | #include 46 | #include 47 | 48 | #include "opencv2/datasets/dataset.hpp" 49 | 50 | #include 51 | 52 | namespace cv 53 | { 54 | namespace datasets 55 | { 56 | 57 | //! @addtogroup datasets_slam 58 | //! @{ 59 | 60 | enum imageType 61 | { 62 | LEFT = 0, 63 | RIGHT, 64 | LADYBUG 65 | }; 66 | 67 | struct SLAM_tumindoorObj : public Object 68 | { 69 | std::string name; 70 | Matx44d transformMat; 71 | imageType type; 72 | }; 73 | 74 | class CV_EXPORTS SLAM_tumindoor : public Dataset 75 | { 76 | public: 77 | virtual void load(const std::string &path) = 0; 78 | 79 | static Ptr create(); 80 | }; 81 | 82 | //! @} 83 | 84 | } 85 | } 86 | 87 | #endif 88 | -------------------------------------------------------------------------------- /include/opencv2/datasets/tr_chars.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2014, Itseez Inc, all rights reserved. 14 | // Third party copyrights are property of their respective owners. 15 | // 16 | // Redistribution and use in source and binary forms, with or without modification, 17 | // are permitted provided that the following conditions are met: 18 | // 19 | // * Redistribution's of source code must retain the above copyright notice, 20 | // this list of conditions and the following disclaimer. 21 | // 22 | // * Redistribution's in binary form must reproduce the above copyright notice, 23 | // this list of conditions and the following disclaimer in the documentation 24 | // and/or other materials provided with the distribution. 25 | // 26 | // * The name of the copyright holders may not be used to endorse or promote products 27 | // derived from this software without specific prior written permission. 28 | // 29 | // This software is provided by the copyright holders and contributors "as is" and 30 | // any express or implied warranties, including, but not limited to, the implied 31 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 32 | // In no event shall the Itseez Inc or contributors be liable for any direct, 33 | // indirect, incidental, special, exemplary, or consequential damages 34 | // (including, but not limited to, procurement of substitute goods or services; 35 | // loss of use, data, or profits; or business interruption) however caused 36 | // and on any theory of liability, whether in contract, strict liability, 37 | // or tort (including negligence or otherwise) arising in any way out of 38 | // the use of this software, even if advised of the possibility of such damage. 39 | // 40 | //M*/ 41 | 42 | #ifndef OPENCV_DATASETS_TR_CHARS_HPP 43 | #define OPENCV_DATASETS_TR_CHARS_HPP 44 | 45 | #include 46 | #include 47 | 48 | #include "opencv2/datasets/dataset.hpp" 49 | 50 | #include 51 | 52 | namespace cv 53 | { 54 | namespace datasets 55 | { 56 | 57 | //! @addtogroup datasets_tr 58 | //! @{ 59 | 60 | struct TR_charsObj : public Object 61 | { 62 | std::string imgName; 63 | int label; 64 | }; 65 | 66 | class CV_EXPORTS TR_chars : public Dataset 67 | { 68 | public: 69 | virtual void load(const std::string &path) = 0; 70 | 71 | static Ptr create(); 72 | }; 73 | 74 | //! @} 75 | 76 | } 77 | } 78 | 79 | #endif 80 | -------------------------------------------------------------------------------- /include/opencv2/datasets/tr_icdar.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2014, Itseez Inc, all rights reserved. 14 | // Third party copyrights are property of their respective owners. 15 | // 16 | // Redistribution and use in source and binary forms, with or without modification, 17 | // are permitted provided that the following conditions are met: 18 | // 19 | // * Redistribution's of source code must retain the above copyright notice, 20 | // this list of conditions and the following disclaimer. 21 | // 22 | // * Redistribution's in binary form must reproduce the above copyright notice, 23 | // this list of conditions and the following disclaimer in the documentation 24 | // and/or other materials provided with the distribution. 25 | // 26 | // * The name of the copyright holders may not be used to endorse or promote products 27 | // derived from this software without specific prior written permission. 28 | // 29 | // This software is provided by the copyright holders and contributors "as is" and 30 | // any express or implied warranties, including, but not limited to, the implied 31 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 32 | // In no event shall the Itseez Inc or contributors be liable for any direct, 33 | // indirect, incidental, special, exemplary, or consequential damages 34 | // (including, but not limited to, procurement of substitute goods or services; 35 | // loss of use, data, or profits; or business interruption) however caused 36 | // and on any theory of liability, whether in contract, strict liability, 37 | // or tort (including negligence or otherwise) arising in any way out of 38 | // the use of this software, even if advised of the possibility of such damage. 39 | // 40 | //M*/ 41 | 42 | #ifndef OPENCV_DATASETS_TR_ICDAR_HPP 43 | #define OPENCV_DATASETS_TR_ICDAR_HPP 44 | 45 | #include 46 | #include 47 | 48 | #include "opencv2/datasets/dataset.hpp" 49 | 50 | #include 51 | 52 | namespace cv 53 | { 54 | namespace datasets 55 | { 56 | 57 | //! @addtogroup datasets_tr 58 | //! @{ 59 | 60 | struct word 61 | { 62 | std::string value; 63 | int height, width, x, y; 64 | }; 65 | 66 | struct TR_icdarObj : public Object 67 | { 68 | std::string fileName; 69 | std::vector lex100; 70 | std::vector lexFull; 71 | std::vector words; 72 | }; 73 | 74 | class CV_EXPORTS TR_icdar : public Dataset 75 | { 76 | public: 77 | virtual void load(const std::string &path) = 0; 78 | 79 | static Ptr create(); 80 | }; 81 | 82 | //! @} 83 | 84 | } 85 | } 86 | 87 | #endif 88 | -------------------------------------------------------------------------------- /include/opencv2/datasets/tr_svt.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2014, Itseez Inc, all rights reserved. 14 | // Third party copyrights are property of their respective owners. 15 | // 16 | // Redistribution and use in source and binary forms, with or without modification, 17 | // are permitted provided that the following conditions are met: 18 | // 19 | // * Redistribution's of source code must retain the above copyright notice, 20 | // this list of conditions and the following disclaimer. 21 | // 22 | // * Redistribution's in binary form must reproduce the above copyright notice, 23 | // this list of conditions and the following disclaimer in the documentation 24 | // and/or other materials provided with the distribution. 25 | // 26 | // * The name of the copyright holders may not be used to endorse or promote products 27 | // derived from this software without specific prior written permission. 28 | // 29 | // This software is provided by the copyright holders and contributors "as is" and 30 | // any express or implied warranties, including, but not limited to, the implied 31 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 32 | // In no event shall the Itseez Inc or contributors be liable for any direct, 33 | // indirect, incidental, special, exemplary, or consequential damages 34 | // (including, but not limited to, procurement of substitute goods or services; 35 | // loss of use, data, or profits; or business interruption) however caused 36 | // and on any theory of liability, whether in contract, strict liability, 37 | // or tort (including negligence or otherwise) arising in any way out of 38 | // the use of this software, even if advised of the possibility of such damage. 39 | // 40 | //M*/ 41 | 42 | #ifndef OPENCV_DATASETS_TR_SVT_HPP 43 | #define OPENCV_DATASETS_TR_SVT_HPP 44 | 45 | #include 46 | #include 47 | 48 | #include "opencv2/datasets/dataset.hpp" 49 | 50 | #include 51 | 52 | namespace cv 53 | { 54 | namespace datasets 55 | { 56 | 57 | //! @addtogroup datasets_tr 58 | //! @{ 59 | 60 | struct tag 61 | { 62 | std::string value; 63 | int height, width, x, y; 64 | }; 65 | 66 | struct TR_svtObj : public Object 67 | { 68 | std::string fileName; 69 | std::vector lex; 70 | std::vector tags; 71 | }; 72 | 73 | class CV_EXPORTS TR_svt : public Dataset 74 | { 75 | public: 76 | virtual void load(const std::string &path) = 0; 77 | 78 | static Ptr create(); 79 | }; 80 | 81 | //! @} 82 | 83 | } 84 | } 85 | 86 | #endif 87 | -------------------------------------------------------------------------------- /include/opencv2/datasets/util.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2014, Itseez Inc, all rights reserved. 14 | // Third party copyrights are property of their respective owners. 15 | // 16 | // Redistribution and use in source and binary forms, with or without modification, 17 | // are permitted provided that the following conditions are met: 18 | // 19 | // * Redistribution's of source code must retain the above copyright notice, 20 | // this list of conditions and the following disclaimer. 21 | // 22 | // * Redistribution's in binary form must reproduce the above copyright notice, 23 | // this list of conditions and the following disclaimer in the documentation 24 | // and/or other materials provided with the distribution. 25 | // 26 | // * The name of the copyright holders may not be used to endorse or promote products 27 | // derived from this software without specific prior written permission. 28 | // 29 | // This software is provided by the copyright holders and contributors "as is" and 30 | // any express or implied warranties, including, but not limited to, the implied 31 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 32 | // In no event shall the Itseez Inc or contributors be liable for any direct, 33 | // indirect, incidental, special, exemplary, or consequential damages 34 | // (including, but not limited to, procurement of substitute goods or services; 35 | // loss of use, data, or profits; or business interruption) however caused 36 | // and on any theory of liability, whether in contract, strict liability, 37 | // or tort (including negligence or otherwise) arising in any way out of 38 | // the use of this software, even if advised of the possibility of such damage. 39 | // 40 | //M*/ 41 | 42 | #ifndef OPENCV_DATASETS_UTIL_HPP 43 | #define OPENCV_DATASETS_UTIL_HPP 44 | 45 | #include 46 | #include 47 | 48 | #include 49 | #include // atoi, atof 50 | 51 | #include 52 | 53 | #include 54 | 55 | namespace cv 56 | { 57 | namespace datasets 58 | { 59 | 60 | //! @addtogroup datasets 61 | //! @{ 62 | 63 | void CV_EXPORTS split(const std::string &s, std::vector &elems, char delim); 64 | 65 | void CV_EXPORTS createDirectory(const std::string &path); 66 | 67 | void CV_EXPORTS getDirList(const std::string &dirName, std::vector &fileNames); 68 | 69 | //! @} 70 | 71 | } 72 | } 73 | 74 | #endif 75 | -------------------------------------------------------------------------------- /include/opencv2/features2d/features2d.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Copyright (C) 2013, OpenCV Foundation, all rights reserved. 16 | // Third party copyrights are property of their respective owners. 17 | // 18 | // Redistribution and use in source and binary forms, with or without modification, 19 | // are permitted provided that the following conditions are met: 20 | // 21 | // * Redistribution's of source code must retain the above copyright notice, 22 | // this list of conditions and the following disclaimer. 23 | // 24 | // * Redistribution's in binary form must reproduce the above copyright notice, 25 | // this list of conditions and the following disclaimer in the documentation 26 | // and/or other materials provided with the distribution. 27 | // 28 | // * The name of the copyright holders may not be used to endorse or promote products 29 | // derived from this software without specific prior written permission. 30 | // 31 | // This software is provided by the copyright holders and contributors "as is" and 32 | // any express or implied warranties, including, but not limited to, the implied 33 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 34 | // In no event shall the Intel Corporation or contributors be liable for any direct, 35 | // indirect, incidental, special, exemplary, or consequential damages 36 | // (including, but not limited to, procurement of substitute goods or services; 37 | // loss of use, data, or profits; or business interruption) however caused 38 | // and on any theory of liability, whether in contract, strict liability, 39 | // or tort (including negligence or otherwise) arising in any way out of 40 | // the use of this software, even if advised of the possibility of such damage. 41 | // 42 | //M*/ 43 | 44 | #ifdef __OPENCV_BUILD 45 | #error this is a compatibility header which should not be used inside the OpenCV library 46 | #endif 47 | 48 | #include "opencv2/features2d.hpp" 49 | -------------------------------------------------------------------------------- /include/opencv2/flann/config.h: -------------------------------------------------------------------------------- 1 | /*********************************************************************** 2 | * Software License Agreement (BSD License) 3 | * 4 | * Copyright 2008-2011 Marius Muja (mariusm@cs.ubc.ca). All rights reserved. 5 | * Copyright 2008-2011 David G. Lowe (lowe@cs.ubc.ca). All rights reserved. 6 | * 7 | * Redistribution and use in source and binary forms, with or without 8 | * modification, are permitted provided that the following conditions 9 | * are met: 10 | * 11 | * 1. Redistributions of source code must retain the above copyright 12 | * notice, this list of conditions and the following disclaimer. 13 | * 2. Redistributions in binary form must reproduce the above copyright 14 | * notice, this list of conditions and the following disclaimer in the 15 | * documentation and/or other materials provided with the distribution. 16 | * 17 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 18 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 19 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 20 | * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 21 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 22 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | *************************************************************************/ 28 | 29 | 30 | #ifndef OPENCV_FLANN_CONFIG_H_ 31 | #define OPENCV_FLANN_CONFIG_H_ 32 | 33 | #ifdef FLANN_VERSION_ 34 | #undef FLANN_VERSION_ 35 | #endif 36 | #define FLANN_VERSION_ "1.6.10" 37 | 38 | #endif /* OPENCV_FLANN_CONFIG_H_ */ 39 | -------------------------------------------------------------------------------- /include/opencv2/flann/dummy.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef OPENCV_FLANN_DUMMY_H_ 3 | #define OPENCV_FLANN_DUMMY_H_ 4 | 5 | namespace cvflann 6 | { 7 | 8 | #if (defined WIN32 || defined _WIN32 || defined WINCE) && defined CVAPI_EXPORTS 9 | __declspec(dllexport) 10 | #endif 11 | void dummyfunc(); 12 | 13 | } 14 | 15 | 16 | #endif /* OPENCV_FLANN_DUMMY_H_ */ 17 | -------------------------------------------------------------------------------- /include/opencv2/flann/flann.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Copyright (C) 2013, OpenCV Foundation, all rights reserved. 16 | // Third party copyrights are property of their respective owners. 17 | // 18 | // Redistribution and use in source and binary forms, with or without modification, 19 | // are permitted provided that the following conditions are met: 20 | // 21 | // * Redistribution's of source code must retain the above copyright notice, 22 | // this list of conditions and the following disclaimer. 23 | // 24 | // * Redistribution's in binary form must reproduce the above copyright notice, 25 | // this list of conditions and the following disclaimer in the documentation 26 | // and/or other materials provided with the distribution. 27 | // 28 | // * The name of the copyright holders may not be used to endorse or promote products 29 | // derived from this software without specific prior written permission. 30 | // 31 | // This software is provided by the copyright holders and contributors "as is" and 32 | // any express or implied warranties, including, but not limited to, the implied 33 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 34 | // In no event shall the Intel Corporation or contributors be liable for any direct, 35 | // indirect, incidental, special, exemplary, or consequential damages 36 | // (including, but not limited to, procurement of substitute goods or services; 37 | // loss of use, data, or profits; or business interruption) however caused 38 | // and on any theory of liability, whether in contract, strict liability, 39 | // or tort (including negligence or otherwise) arising in any way out of 40 | // the use of this software, even if advised of the possibility of such damage. 41 | // 42 | //M*/ 43 | 44 | #ifdef __OPENCV_BUILD 45 | #error this is a compatibility header which should not be used inside the OpenCV library 46 | #endif 47 | 48 | #include "opencv2/flann.hpp" 49 | -------------------------------------------------------------------------------- /include/opencv2/flann/general.h: -------------------------------------------------------------------------------- 1 | /*********************************************************************** 2 | * Software License Agreement (BSD License) 3 | * 4 | * Copyright 2008-2009 Marius Muja (mariusm@cs.ubc.ca). All rights reserved. 5 | * Copyright 2008-2009 David G. Lowe (lowe@cs.ubc.ca). All rights reserved. 6 | * 7 | * THE BSD LICENSE 8 | * 9 | * Redistribution and use in source and binary forms, with or without 10 | * modification, are permitted provided that the following conditions 11 | * are met: 12 | * 13 | * 1. Redistributions of source code must retain the above copyright 14 | * notice, this list of conditions and the following disclaimer. 15 | * 2. Redistributions in binary form must reproduce the above copyright 16 | * notice, this list of conditions and the following disclaimer in the 17 | * documentation and/or other materials provided with the distribution. 18 | * 19 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 20 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 21 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 22 | * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 23 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 24 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 28 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | *************************************************************************/ 30 | 31 | #ifndef OPENCV_FLANN_GENERAL_H_ 32 | #define OPENCV_FLANN_GENERAL_H_ 33 | 34 | #include "opencv2/core.hpp" 35 | 36 | namespace cvflann 37 | { 38 | 39 | class FLANNException : public cv::Exception 40 | { 41 | public: 42 | FLANNException(const char* message) : cv::Exception(0, message, "", __FILE__, __LINE__) { } 43 | 44 | FLANNException(const cv::String& message) : cv::Exception(0, message, "", __FILE__, __LINE__) { } 45 | }; 46 | 47 | } 48 | 49 | 50 | #endif /* OPENCV_FLANN_GENERAL_H_ */ 51 | -------------------------------------------------------------------------------- /include/opencv2/flann/sampling.h: -------------------------------------------------------------------------------- 1 | /*********************************************************************** 2 | * Software License Agreement (BSD License) 3 | * 4 | * Copyright 2008-2009 Marius Muja (mariusm@cs.ubc.ca). All rights reserved. 5 | * Copyright 2008-2009 David G. Lowe (lowe@cs.ubc.ca). All rights reserved. 6 | * 7 | * Redistribution and use in source and binary forms, with or without 8 | * modification, are permitted provided that the following conditions 9 | * are met: 10 | * 11 | * 1. Redistributions of source code must retain the above copyright 12 | * notice, this list of conditions and the following disclaimer. 13 | * 2. Redistributions in binary form must reproduce the above copyright 14 | * notice, this list of conditions and the following disclaimer in the 15 | * documentation and/or other materials provided with the distribution. 16 | * 17 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 18 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 19 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 20 | * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 21 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 22 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | *************************************************************************/ 28 | 29 | 30 | #ifndef OPENCV_FLANN_SAMPLING_H_ 31 | #define OPENCV_FLANN_SAMPLING_H_ 32 | 33 | #include "matrix.h" 34 | #include "random.h" 35 | 36 | namespace cvflann 37 | { 38 | 39 | template 40 | Matrix random_sample(Matrix& srcMatrix, long size, bool remove = false) 41 | { 42 | Matrix newSet(new T[size * srcMatrix.cols], size,srcMatrix.cols); 43 | 44 | T* src,* dest; 45 | for (long i=0; i 63 | Matrix random_sample(const Matrix& srcMatrix, size_t size) 64 | { 65 | UniqueRandom rand((int)srcMatrix.rows); 66 | Matrix newSet(new T[size * srcMatrix.cols], size,srcMatrix.cols); 67 | 68 | T* src,* dest; 69 | for (size_t i=0; i 35 | #include "opencv2/core.hpp" 36 | #include "opencv2/core/utility.hpp" 37 | 38 | namespace cvflann 39 | { 40 | 41 | /** 42 | * A start-stop timer class. 43 | * 44 | * Can be used to time portions of code. 45 | */ 46 | class StartStopTimer 47 | { 48 | int64 startTime; 49 | 50 | public: 51 | /** 52 | * Value of the timer. 53 | */ 54 | double value; 55 | 56 | 57 | /** 58 | * Constructor. 59 | */ 60 | StartStopTimer() 61 | { 62 | reset(); 63 | } 64 | 65 | /** 66 | * Starts the timer. 67 | */ 68 | void start() 69 | { 70 | startTime = cv::getTickCount(); 71 | } 72 | 73 | /** 74 | * Stops the timer and updates timer value. 75 | */ 76 | void stop() 77 | { 78 | int64 stopTime = cv::getTickCount(); 79 | value += ( (double)stopTime - startTime) / cv::getTickFrequency(); 80 | } 81 | 82 | /** 83 | * Resets the timer value to 0. 84 | */ 85 | void reset() 86 | { 87 | value = 0; 88 | } 89 | 90 | }; 91 | 92 | } 93 | 94 | #endif // FLANN_TIMER_H 95 | -------------------------------------------------------------------------------- /include/opencv2/fuzzy.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2015, University of Ostrava, Institute for Research and Applications of Fuzzy Modeling, 14 | // Pavel Vlasanek, all rights reserved. Third party copyrights are property of their respective owners. 15 | // 16 | // Redistribution and use in source and binary forms, with or without modification, 17 | // are permitted provided that the following conditions are met: 18 | // 19 | // * Redistribution's of source code must retain the above copyright notice, 20 | // this list of conditions and the following disclaimer. 21 | // 22 | // * Redistribution's in binary form must reproduce the above copyright notice, 23 | // this list of conditions and the following disclaimer in the documentation 24 | // and/or other materials provided with the distribution. 25 | // 26 | // * The name of the copyright holders may not be used to endorse or promote products 27 | // derived from this software without specific prior written permission. 28 | // 29 | // This software is provided by the copyright holders and contributors "as is" and 30 | // any express or implied warranties, including, but not limited to, the implied 31 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 32 | // In no event shall the Intel Corporation or contributors be liable for any direct, 33 | // indirect, incidental, special, exemplary, or consequential damages 34 | // (including, but not limited to, procurement of substitute goods or services; 35 | // loss of use, data, or profits; or business interruption) however caused 36 | // and on any theory of liability, whether in contract, strict liability, 37 | // or tort (including negligence or otherwise) arising in any way out of 38 | // the use of this software, even if advised of the possibility of such damage. 39 | // 40 | //M*/ 41 | 42 | #ifndef __OPENCV_FUZZY_H__ 43 | #define __OPENCV_FUZZY_H__ 44 | 45 | #include "opencv2/fuzzy/types.hpp" 46 | #include "opencv2/fuzzy/fuzzy_F0_math.hpp" 47 | #include "opencv2/fuzzy/fuzzy_image.hpp" 48 | 49 | /** 50 | @defgroup fuzzy Image processing based on fuzzy mathematics 51 | 52 | Namespace for all functions is **ft**. The module brings implementation of the last image processing algorithms based on fuzzy mathematics. 53 | 54 | @{ 55 | @defgroup f0_math Math with F0-transfrom support 56 | 57 | Fuzzy transform (F-transform) of the 0th degree transform whole image to a vector of its components. These components are used in latter computation. 58 | 59 | @defgroup f_image Fuzzy image processing 60 | 61 | Image proceesing based on F-transform is fast to process and easy to understand. 62 | @} 63 | 64 | */ 65 | 66 | #endif // __OPENCV_FUZZY_H__ 67 | -------------------------------------------------------------------------------- /include/opencv2/fuzzy/types.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2015, University of Ostrava, Institute for Research and Applications of Fuzzy Modeling, 14 | // Pavel Vlasanek, all rights reserved. Third party copyrights are property of their respective owners. 15 | // 16 | // Redistribution and use in source and binary forms, with or without modification, 17 | // are permitted provided that the following conditions are met: 18 | // 19 | // * Redistribution's of source code must retain the above copyright notice, 20 | // this list of conditions and the following disclaimer. 21 | // 22 | // * Redistribution's in binary form must reproduce the above copyright notice, 23 | // this list of conditions and the following disclaimer in the documentation 24 | // and/or other materials provided with the distribution. 25 | // 26 | // * The name of the copyright holders may not be used to endorse or promote products 27 | // derived from this software without specific prior written permission. 28 | // 29 | // This software is provided by the copyright holders and contributors "as is" and 30 | // any express or implied warranties, including, but not limited to, the implied 31 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 32 | // In no event shall the Intel Corporation or contributors be liable for any direct, 33 | // indirect, incidental, special, exemplary, or consequential damages 34 | // (including, but not limited to, procurement of substitute goods or services; 35 | // loss of use, data, or profits; or business interruption) however caused 36 | // and on any theory of liability, whether in contract, strict liability, 37 | // or tort (including negligence or otherwise) arising in any way out of 38 | // the use of this software, even if advised of the possibility of such damage. 39 | // 40 | //M*/ 41 | 42 | #ifndef __OPENCV_FUZZY_TYPES_H__ 43 | #define __OPENCV_FUZZY_TYPES_H__ 44 | 45 | namespace cv 46 | { 47 | 48 | namespace ft 49 | { 50 | //! @addtogroup fuzzy 51 | //! @{ 52 | 53 | enum 54 | { 55 | LINEAR = 1, 56 | SINUS = 2 57 | }; 58 | 59 | enum 60 | { 61 | ONE_STEP = 1, 62 | MULTI_STEP = 2, 63 | ITERATIVE = 3 64 | }; 65 | 66 | //! @} 67 | } 68 | } 69 | 70 | #endif // __OPENCV_FUZZY_TYPES_H__ 71 | -------------------------------------------------------------------------------- /include/opencv2/hdf.hpp: -------------------------------------------------------------------------------- 1 | /********************************************************************* 2 | * Software License Agreement (BSD License) 3 | * 4 | * Copyright (c) 2015 5 | * Balint Cristian 6 | * 7 | * Redistribution and use in source and binary forms, with or without 8 | * modification, are permitted provided that the following conditions 9 | * are met: 10 | * 11 | * * Redistributions of source code must retain the above copyright 12 | * notice, this list of conditions and the following disclaimer. 13 | * * Redistributions in binary form must reproduce the above 14 | * copyright notice, this list of conditions and the following 15 | * disclaimer in the documentation and/or other materials provided 16 | * with the distribution. 17 | * * Neither the name of the copyright holders nor the names of its 18 | * contributors may be used to endorse or promote products derived 19 | * from this software without specific prior written permission. 20 | * 21 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 22 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 23 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 24 | * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 25 | * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 26 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 27 | * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 28 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 29 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 31 | * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 32 | * POSSIBILITY OF SUCH DAMAGE. 33 | *********************************************************************/ 34 | 35 | #ifndef __OPENCV_HDF_HPP__ 36 | #define __OPENCV_HDF_HPP__ 37 | 38 | #include "opencv2/hdf/hdf5.hpp" 39 | 40 | /** @defgroup hdf Hierarchical Data Format I/O routines 41 | 42 | This module provides storage routines for Hierarchical Data Format objects. 43 | 44 | @{ 45 | @defgroup hdf5 Hierarchical Data Format version 5 46 | 47 | Hierarchical Data Format version 5 48 | -------------------------------------------------------- 49 | 50 | 51 | @} 52 | */ 53 | 54 | #endif 55 | -------------------------------------------------------------------------------- /include/opencv2/highgui/highgui.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Copyright (C) 2013, OpenCV Foundation, all rights reserved. 16 | // Third party copyrights are property of their respective owners. 17 | // 18 | // Redistribution and use in source and binary forms, with or without modification, 19 | // are permitted provided that the following conditions are met: 20 | // 21 | // * Redistribution's of source code must retain the above copyright notice, 22 | // this list of conditions and the following disclaimer. 23 | // 24 | // * Redistribution's in binary form must reproduce the above copyright notice, 25 | // this list of conditions and the following disclaimer in the documentation 26 | // and/or other materials provided with the distribution. 27 | // 28 | // * The name of the copyright holders may not be used to endorse or promote products 29 | // derived from this software without specific prior written permission. 30 | // 31 | // This software is provided by the copyright holders and contributors "as is" and 32 | // any express or implied warranties, including, but not limited to, the implied 33 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 34 | // In no event shall the Intel Corporation or contributors be liable for any direct, 35 | // indirect, incidental, special, exemplary, or consequential damages 36 | // (including, but not limited to, procurement of substitute goods or services; 37 | // loss of use, data, or profits; or business interruption) however caused 38 | // and on any theory of liability, whether in contract, strict liability, 39 | // or tort (including negligence or otherwise) arising in any way out of 40 | // the use of this software, even if advised of the possibility of such damage. 41 | // 42 | //M*/ 43 | 44 | #ifdef __OPENCV_BUILD 45 | #error this is a compatibility header which should not be used inside the OpenCV library 46 | #endif 47 | 48 | #include "opencv2/highgui.hpp" 49 | -------------------------------------------------------------------------------- /include/opencv2/imgcodecs/imgcodecs.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Copyright (C) 2013, OpenCV Foundation, all rights reserved. 16 | // Third party copyrights are property of their respective owners. 17 | // 18 | // Redistribution and use in source and binary forms, with or without modification, 19 | // are permitted provided that the following conditions are met: 20 | // 21 | // * Redistribution's of source code must retain the above copyright notice, 22 | // this list of conditions and the following disclaimer. 23 | // 24 | // * Redistribution's in binary form must reproduce the above copyright notice, 25 | // this list of conditions and the following disclaimer in the documentation 26 | // and/or other materials provided with the distribution. 27 | // 28 | // * The name of the copyright holders may not be used to endorse or promote products 29 | // derived from this software without specific prior written permission. 30 | // 31 | // This software is provided by the copyright holders and contributors "as is" and 32 | // any express or implied warranties, including, but not limited to, the implied 33 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 34 | // In no event shall the Intel Corporation or contributors be liable for any direct, 35 | // indirect, incidental, special, exemplary, or consequential damages 36 | // (including, but not limited to, procurement of substitute goods or services; 37 | // loss of use, data, or profits; or business interruption) however caused 38 | // and on any theory of liability, whether in contract, strict liability, 39 | // or tort (including negligence or otherwise) arising in any way out of 40 | // the use of this software, even if advised of the possibility of such damage. 41 | // 42 | //M*/ 43 | 44 | #ifdef __OPENCV_BUILD 45 | #error this is a compatibility header which should not be used inside the OpenCV library 46 | #endif 47 | 48 | #include "opencv2/imgcodecs.hpp" 49 | -------------------------------------------------------------------------------- /include/opencv2/imgcodecs/ios.h: -------------------------------------------------------------------------------- 1 | 2 | /*M/////////////////////////////////////////////////////////////////////////////////////// 3 | // 4 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 5 | // 6 | // By downloading, copying, installing or using the software you agree to this license. 7 | // If you do not agree to this license, do not download, install, 8 | // copy or use the software. 9 | // 10 | // 11 | // License Agreement 12 | // For Open Source Computer Vision Library 13 | // 14 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 15 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 16 | // Third party copyrights are property of their respective owners. 17 | // 18 | // Redistribution and use in source and binary forms, with or without modification, 19 | // are permitted provided that the following conditions are met: 20 | // 21 | // * Redistribution's of source code must retain the above copyright notice, 22 | // this list of conditions and the following disclaimer. 23 | // 24 | // * Redistribution's in binary form must reproduce the above copyright notice, 25 | // this list of conditions and the following disclaimer in the documentation 26 | // and/or other materials provided with the distribution. 27 | // 28 | // * The name of the copyright holders may not be used to endorse or promote products 29 | // derived from this software without specific prior written permission. 30 | // 31 | // This software is provided by the copyright holders and contributors "as is" and 32 | // any express or implied warranties, including, but not limited to, the implied 33 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 34 | // In no event shall the Intel Corporation or contributors be liable for any direct, 35 | // indirect, incidental, special, exemplary, or consequential damages 36 | // (including, but not limited to, procurement of substitute goods or services; 37 | // loss of use, data, or profits; or business interruption) however caused 38 | // and on any theory of liability, whether in contract, strict liability, 39 | // or tort (including negligence or otherwise) arising in any way out of 40 | // the use of this software, even if advised of the possibility of such damage. 41 | // 42 | //M*/ 43 | 44 | #import 45 | #import 46 | #import 47 | #import 48 | #include "opencv2/core/core.hpp" 49 | 50 | //! @addtogroup imgcodecs_ios 51 | //! @{ 52 | 53 | UIImage* MatToUIImage(const cv::Mat& image); 54 | void UIImageToMat(const UIImage* image, 55 | cv::Mat& m, bool alphaExist = false); 56 | 57 | //! @} 58 | -------------------------------------------------------------------------------- /include/opencv2/imgproc/hal/interface.h: -------------------------------------------------------------------------------- 1 | #ifndef OPENCV_IMGPROC_HAL_INTERFACE_H 2 | #define OPENCV_IMGPROC_HAL_INTERFACE_H 3 | 4 | //! @addtogroup imgproc_hal_interface 5 | //! @{ 6 | 7 | //! @name Interpolation modes 8 | //! @sa cv::InterpolationFlags 9 | //! @{ 10 | #define CV_HAL_INTER_NEAREST 0 11 | #define CV_HAL_INTER_LINEAR 1 12 | #define CV_HAL_INTER_CUBIC 2 13 | #define CV_HAL_INTER_AREA 3 14 | #define CV_HAL_INTER_LANCZOS4 4 15 | //! @} 16 | 17 | //! @name Morphology operations 18 | //! @sa cv::MorphTypes 19 | //! @{ 20 | #define MORPH_ERODE 0 21 | #define MORPH_DILATE 1 22 | //! @} 23 | 24 | //! @} 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /include/opencv2/imgproc/imgproc.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Copyright (C) 2013, OpenCV Foundation, all rights reserved. 16 | // Third party copyrights are property of their respective owners. 17 | // 18 | // Redistribution and use in source and binary forms, with or without modification, 19 | // are permitted provided that the following conditions are met: 20 | // 21 | // * Redistribution's of source code must retain the above copyright notice, 22 | // this list of conditions and the following disclaimer. 23 | // 24 | // * Redistribution's in binary form must reproduce the above copyright notice, 25 | // this list of conditions and the following disclaimer in the documentation 26 | // and/or other materials provided with the distribution. 27 | // 28 | // * The name of the copyright holders may not be used to endorse or promote products 29 | // derived from this software without specific prior written permission. 30 | // 31 | // This software is provided by the copyright holders and contributors "as is" and 32 | // any express or implied warranties, including, but not limited to, the implied 33 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 34 | // In no event shall the Intel Corporation or contributors be liable for any direct, 35 | // indirect, incidental, special, exemplary, or consequential damages 36 | // (including, but not limited to, procurement of substitute goods or services; 37 | // loss of use, data, or profits; or business interruption) however caused 38 | // and on any theory of liability, whether in contract, strict liability, 39 | // or tort (including negligence or otherwise) arising in any way out of 40 | // the use of this software, even if advised of the possibility of such damage. 41 | // 42 | //M*/ 43 | 44 | #ifdef __OPENCV_BUILD 45 | #error this is a compatibility header which should not be used inside the OpenCV library 46 | #endif 47 | 48 | #include "opencv2/imgproc.hpp" 49 | -------------------------------------------------------------------------------- /include/opencv2/ml/ml.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Copyright (C) 2013, OpenCV Foundation, all rights reserved. 16 | // Third party copyrights are property of their respective owners. 17 | // 18 | // Redistribution and use in source and binary forms, with or without modification, 19 | // are permitted provided that the following conditions are met: 20 | // 21 | // * Redistribution's of source code must retain the above copyright notice, 22 | // this list of conditions and the following disclaimer. 23 | // 24 | // * Redistribution's in binary form must reproduce the above copyright notice, 25 | // this list of conditions and the following disclaimer in the documentation 26 | // and/or other materials provided with the distribution. 27 | // 28 | // * The name of the copyright holders may not be used to endorse or promote products 29 | // derived from this software without specific prior written permission. 30 | // 31 | // This software is provided by the copyright holders and contributors "as is" and 32 | // any express or implied warranties, including, but not limited to, the implied 33 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 34 | // In no event shall the Intel Corporation or contributors be liable for any direct, 35 | // indirect, incidental, special, exemplary, or consequential damages 36 | // (including, but not limited to, procurement of substitute goods or services; 37 | // loss of use, data, or profits; or business interruption) however caused 38 | // and on any theory of liability, whether in contract, strict liability, 39 | // or tort (including negligence or otherwise) arising in any way out of 40 | // the use of this software, even if advised of the possibility of such damage. 41 | // 42 | //M*/ 43 | 44 | #ifdef __OPENCV_BUILD 45 | #error this is a compatibility header which should not be used inside the OpenCV library 46 | #endif 47 | 48 | #include "opencv2/ml.hpp" 49 | -------------------------------------------------------------------------------- /include/opencv2/objdetect/objdetect.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Copyright (C) 2013, OpenCV Foundation, all rights reserved. 16 | // Third party copyrights are property of their respective owners. 17 | // 18 | // Redistribution and use in source and binary forms, with or without modification, 19 | // are permitted provided that the following conditions are met: 20 | // 21 | // * Redistribution's of source code must retain the above copyright notice, 22 | // this list of conditions and the following disclaimer. 23 | // 24 | // * Redistribution's in binary form must reproduce the above copyright notice, 25 | // this list of conditions and the following disclaimer in the documentation 26 | // and/or other materials provided with the distribution. 27 | // 28 | // * The name of the copyright holders may not be used to endorse or promote products 29 | // derived from this software without specific prior written permission. 30 | // 31 | // This software is provided by the copyright holders and contributors "as is" and 32 | // any express or implied warranties, including, but not limited to, the implied 33 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 34 | // In no event shall the Intel Corporation or contributors be liable for any direct, 35 | // indirect, incidental, special, exemplary, or consequential damages 36 | // (including, but not limited to, procurement of substitute goods or services; 37 | // loss of use, data, or profits; or business interruption) however caused 38 | // and on any theory of liability, whether in contract, strict liability, 39 | // or tort (including negligence or otherwise) arising in any way out of 40 | // the use of this software, even if advised of the possibility of such damage. 41 | // 42 | //M*/ 43 | 44 | #ifdef __OPENCV_BUILD 45 | #error this is a compatibility header which should not be used inside the OpenCV library 46 | #endif 47 | 48 | #include "opencv2/objdetect.hpp" 49 | -------------------------------------------------------------------------------- /include/opencv2/opencv_modules.hpp: -------------------------------------------------------------------------------- 1 | /* 2 | * ** File generated automatically, do not modify ** 3 | * 4 | * This file defines the list of modules available in current build configuration 5 | * 6 | * 7 | */ 8 | 9 | // This definition means that OpenCV is built with enabled non-free code. 10 | // For example, patented algorithms for non-profit/non-commercial use only. 11 | /* #undef OPENCV_ENABLE_NONFREE */ 12 | 13 | #define HAVE_OPENCV_ARUCO 14 | #define HAVE_OPENCV_BGSEGM 15 | #define HAVE_OPENCV_BIOINSPIRED 16 | #define HAVE_OPENCV_CALIB3D 17 | #define HAVE_OPENCV_CCALIB 18 | #define HAVE_OPENCV_CORE 19 | #define HAVE_OPENCV_DATASETS 20 | #define HAVE_OPENCV_DPM 21 | #define HAVE_OPENCV_FACE 22 | #define HAVE_OPENCV_FEATURES2D 23 | #define HAVE_OPENCV_FLANN 24 | #define HAVE_OPENCV_FREETYPE 25 | #define HAVE_OPENCV_FUZZY 26 | #define HAVE_OPENCV_HDF 27 | #define HAVE_OPENCV_HIGHGUI 28 | #define HAVE_OPENCV_IMGCODECS 29 | #define HAVE_OPENCV_IMGPROC 30 | #define HAVE_OPENCV_LINE_DESCRIPTOR 31 | #define HAVE_OPENCV_ML 32 | #define HAVE_OPENCV_OBJDETECT 33 | #define HAVE_OPENCV_OPTFLOW 34 | #define HAVE_OPENCV_PHASE_UNWRAPPING 35 | #define HAVE_OPENCV_PHOTO 36 | #define HAVE_OPENCV_PLOT 37 | #define HAVE_OPENCV_REG 38 | #define HAVE_OPENCV_RGBD 39 | #define HAVE_OPENCV_SALIENCY 40 | #define HAVE_OPENCV_SHAPE 41 | #define HAVE_OPENCV_STEREO 42 | #define HAVE_OPENCV_STITCHING 43 | #define HAVE_OPENCV_STRUCTURED_LIGHT 44 | #define HAVE_OPENCV_SUPERRES 45 | #define HAVE_OPENCV_SURFACE_MATCHING 46 | #define HAVE_OPENCV_TEXT 47 | #define HAVE_OPENCV_VIDEO 48 | #define HAVE_OPENCV_VIDEOIO 49 | #define HAVE_OPENCV_VIDEOSTAB 50 | #define HAVE_OPENCV_VIZ 51 | #define HAVE_OPENCV_XIMGPROC 52 | #define HAVE_OPENCV_XOBJDETECT 53 | #define HAVE_OPENCV_XPHOTO 54 | 55 | 56 | -------------------------------------------------------------------------------- /include/opencv2/photo/photo.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Copyright (C) 2013, OpenCV Foundation, all rights reserved. 16 | // Third party copyrights are property of their respective owners. 17 | // 18 | // Redistribution and use in source and binary forms, with or without modification, 19 | // are permitted provided that the following conditions are met: 20 | // 21 | // * Redistribution's of source code must retain the above copyright notice, 22 | // this list of conditions and the following disclaimer. 23 | // 24 | // * Redistribution's in binary form must reproduce the above copyright notice, 25 | // this list of conditions and the following disclaimer in the documentation 26 | // and/or other materials provided with the distribution. 27 | // 28 | // * The name of the copyright holders may not be used to endorse or promote products 29 | // derived from this software without specific prior written permission. 30 | // 31 | // This software is provided by the copyright holders and contributors "as is" and 32 | // any express or implied warranties, including, but not limited to, the implied 33 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 34 | // In no event shall the Intel Corporation or contributors be liable for any direct, 35 | // indirect, incidental, special, exemplary, or consequential damages 36 | // (including, but not limited to, procurement of substitute goods or services; 37 | // loss of use, data, or profits; or business interruption) however caused 38 | // and on any theory of liability, whether in contract, strict liability, 39 | // or tort (including negligence or otherwise) arising in any way out of 40 | // the use of this software, even if advised of the possibility of such damage. 41 | // 42 | //M*/ 43 | 44 | #ifdef __OPENCV_BUILD 45 | #error this is a compatibility header which should not be used inside the OpenCV library 46 | #endif 47 | 48 | #include "opencv2/photo.hpp" 49 | -------------------------------------------------------------------------------- /include/opencv2/photo/photo_c.h: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2008-2012, Willow Garage Inc., all rights reserved. 15 | // Third party copyrights are property of their respective owners. 16 | // 17 | // Redistribution and use in source and binary forms, with or without modification, 18 | // are permitted provided that the following conditions are met: 19 | // 20 | // * Redistribution's of source code must retain the above copyright notice, 21 | // this list of conditions and the following disclaimer. 22 | // 23 | // * Redistribution's in binary form must reproduce the above copyright notice, 24 | // this list of conditions and the following disclaimer in the documentation 25 | // and/or other materials provided with the distribution. 26 | // 27 | // * The name of the copyright holders may not be used to endorse or promote products 28 | // derived from this software without specific prior written permission. 29 | // 30 | // This software is provided by the copyright holders and contributors "as is" and 31 | // any express or implied warranties, including, but not limited to, the implied 32 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 33 | // In no event shall the Intel Corporation or contributors be liable for any direct, 34 | // indirect, incidental, special, exemplary, or consequential damages 35 | // (including, but not limited to, procurement of substitute goods or services; 36 | // loss of use, data, or profits; or business interruption) however caused 37 | // and on any theory of liability, whether in contract, strict liability, 38 | // or tort (including negligence or otherwise) arising in any way out of 39 | // the use of this software, even if advised of the possibility of such damage. 40 | // 41 | //M*/ 42 | 43 | #ifndef OPENCV_PHOTO_C_H 44 | #define OPENCV_PHOTO_C_H 45 | 46 | #include "opencv2/core/core_c.h" 47 | 48 | #ifdef __cplusplus 49 | extern "C" { 50 | #endif 51 | 52 | /** @addtogroup photo_c 53 | @{ 54 | */ 55 | 56 | /* Inpainting algorithms */ 57 | enum InpaintingModes 58 | { 59 | CV_INPAINT_NS =0, 60 | CV_INPAINT_TELEA =1 61 | }; 62 | 63 | 64 | /* Inpaints the selected region in the image */ 65 | CVAPI(void) cvInpaint( const CvArr* src, const CvArr* inpaint_mask, 66 | CvArr* dst, double inpaintRange, int flags ); 67 | 68 | /** @} */ 69 | 70 | #ifdef __cplusplus 71 | } //extern "C" 72 | #endif 73 | 74 | #endif //OPENCV_PHOTO_C_H 75 | -------------------------------------------------------------------------------- /include/opencv2/reg/mappergradaffine.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // Copyright (C) 2013, Alfonso Sanchez-Beato, all rights reserved. 10 | // Third party copyrights are property of their respective owners. 11 | // 12 | // Redistribution and use in source and binary forms, with or without modification, 13 | // are permitted provided that the following conditions are met: 14 | // 15 | // * Redistribution's of source code must retain the above copyright notice, 16 | // this list of conditions and the following disclaimer. 17 | // 18 | // * Redistribution's in binary form must reproduce the above copyright notice, 19 | // this list of conditions and the following disclaimer in the documentation 20 | // and/or other materials provided with the distribution. 21 | // 22 | // * The name of the copyright holders may not be used to endorse or promote products 23 | // derived from this software without specific prior written permission. 24 | // 25 | // This software is provided by the copyright holders and contributors "as is" and 26 | // any express or implied warranties, including, but not limited to, the implied 27 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 28 | // In no event shall the contributors be liable for any direct, 29 | // indirect, incidental, special, exemplary, or consequential damages 30 | // (including, but not limited to, procurement of substitute goods or services; 31 | // loss of use, data, or profits; or business interruption) however caused 32 | // and on any theory of liability, whether in contract, strict liability, 33 | // or tort (including negligence or otherwise) arising in any way out of 34 | // the use of this software, even if advised of the possibility of such damage. 35 | // 36 | //M*/ 37 | 38 | #ifndef MAPPERGRADAFFINE_H_ 39 | #define MAPPERGRADAFFINE_H_ 40 | 41 | #include "mapper.hpp" 42 | 43 | namespace cv { 44 | namespace reg { 45 | 46 | //! @addtogroup reg 47 | //! @{ 48 | 49 | /*! 50 | * Mapper for affine motion 51 | */ 52 | class CV_EXPORTS MapperGradAffine: public Mapper 53 | { 54 | public: 55 | MapperGradAffine(void); 56 | ~MapperGradAffine(void); 57 | 58 | virtual void calculate(const cv::Mat& img1, const cv::Mat& img2, cv::Ptr& res) const; 59 | 60 | cv::Ptr getMap(void) const; 61 | }; 62 | 63 | //! @} 64 | 65 | }} // namespace cv::reg 66 | 67 | #endif // MAPPERGRADAFFINE_H_ 68 | -------------------------------------------------------------------------------- /include/opencv2/reg/mappergradeuclid.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // Copyright (C) 2013, Alfonso Sanchez-Beato, all rights reserved. 10 | // Third party copyrights are property of their respective owners. 11 | // 12 | // Redistribution and use in source and binary forms, with or without modification, 13 | // are permitted provided that the following conditions are met: 14 | // 15 | // * Redistribution's of source code must retain the above copyright notice, 16 | // this list of conditions and the following disclaimer. 17 | // 18 | // * Redistribution's in binary form must reproduce the above copyright notice, 19 | // this list of conditions and the following disclaimer in the documentation 20 | // and/or other materials provided with the distribution. 21 | // 22 | // * The name of the copyright holders may not be used to endorse or promote products 23 | // derived from this software without specific prior written permission. 24 | // 25 | // This software is provided by the copyright holders and contributors "as is" and 26 | // any express or implied warranties, including, but not limited to, the implied 27 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 28 | // In no event shall the contributors be liable for any direct, 29 | // indirect, incidental, special, exemplary, or consequential damages 30 | // (including, but not limited to, procurement of substitute goods or services; 31 | // loss of use, data, or profits; or business interruption) however caused 32 | // and on any theory of liability, whether in contract, strict liability, 33 | // or tort (including negligence or otherwise) arising in any way out of 34 | // the use of this software, even if advised of the possibility of such damage. 35 | // 36 | //M*/ 37 | 38 | #ifndef MAPPERGRADEUCLID_H_ 39 | #define MAPPERGRADEUCLID_H_ 40 | 41 | #include "mapper.hpp" 42 | 43 | namespace cv { 44 | namespace reg { 45 | 46 | //! @addtogroup reg 47 | //! @{ 48 | 49 | /*! 50 | * Mapper for euclidean motion: rotation plus shift 51 | */ 52 | class CV_EXPORTS MapperGradEuclid: public Mapper 53 | { 54 | public: 55 | MapperGradEuclid(void); 56 | ~MapperGradEuclid(void); 57 | 58 | virtual void calculate(const cv::Mat& img1, const cv::Mat& img2, cv::Ptr& res) const; 59 | 60 | cv::Ptr getMap(void) const; 61 | }; 62 | 63 | //! @} 64 | 65 | }} // namespace cv::reg 66 | 67 | #endif // MAPPERGRADEUCLID_H_ 68 | -------------------------------------------------------------------------------- /include/opencv2/reg/mappergradproj.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // Copyright (C) 2013, Alfonso Sanchez-Beato, all rights reserved. 10 | // Third party copyrights are property of their respective owners. 11 | // 12 | // Redistribution and use in source and binary forms, with or without modification, 13 | // are permitted provided that the following conditions are met: 14 | // 15 | // * Redistribution's of source code must retain the above copyright notice, 16 | // this list of conditions and the following disclaimer. 17 | // 18 | // * Redistribution's in binary form must reproduce the above copyright notice, 19 | // this list of conditions and the following disclaimer in the documentation 20 | // and/or other materials provided with the distribution. 21 | // 22 | // * The name of the copyright holders may not be used to endorse or promote products 23 | // derived from this software without specific prior written permission. 24 | // 25 | // This software is provided by the copyright holders and contributors "as is" and 26 | // any express or implied warranties, including, but not limited to, the implied 27 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 28 | // In no event shall the contributors be liable for any direct, 29 | // indirect, incidental, special, exemplary, or consequential damages 30 | // (including, but not limited to, procurement of substitute goods or services; 31 | // loss of use, data, or profits; or business interruption) however caused 32 | // and on any theory of liability, whether in contract, strict liability, 33 | // or tort (including negligence or otherwise) arising in any way out of 34 | // the use of this software, even if advised of the possibility of such damage. 35 | // 36 | //M*/ 37 | 38 | #ifndef MAPPERGRADPROJ_H_ 39 | #define MAPPERGRADPROJ_H_ 40 | 41 | #include "mapper.hpp" 42 | 43 | namespace cv { 44 | namespace reg { 45 | 46 | //! @addtogroup reg 47 | //! @{ 48 | 49 | /*! 50 | * Gradient mapper for a projective transformation 51 | */ 52 | class CV_EXPORTS MapperGradProj: public Mapper 53 | { 54 | public: 55 | MapperGradProj(void); 56 | ~MapperGradProj(void); 57 | 58 | virtual void calculate(const cv::Mat& img1, const cv::Mat& img2, cv::Ptr& res) const; 59 | 60 | cv::Ptr getMap(void) const; 61 | }; 62 | 63 | //! @} 64 | 65 | }} // namespace cv::reg 66 | 67 | #endif // MAPPERGRADPROJ_H_ 68 | -------------------------------------------------------------------------------- /include/opencv2/reg/mappergradshift.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // Copyright (C) 2013, Alfonso Sanchez-Beato, all rights reserved. 10 | // Third party copyrights are property of their respective owners. 11 | // 12 | // Redistribution and use in source and binary forms, with or without modification, 13 | // are permitted provided that the following conditions are met: 14 | // 15 | // * Redistribution's of source code must retain the above copyright notice, 16 | // this list of conditions and the following disclaimer. 17 | // 18 | // * Redistribution's in binary form must reproduce the above copyright notice, 19 | // this list of conditions and the following disclaimer in the documentation 20 | // and/or other materials provided with the distribution. 21 | // 22 | // * The name of the copyright holders may not be used to endorse or promote products 23 | // derived from this software without specific prior written permission. 24 | // 25 | // This software is provided by the copyright holders and contributors "as is" and 26 | // any express or implied warranties, including, but not limited to, the implied 27 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 28 | // In no event shall the contributors be liable for any direct, 29 | // indirect, incidental, special, exemplary, or consequential damages 30 | // (including, but not limited to, procurement of substitute goods or services; 31 | // loss of use, data, or profits; or business interruption) however caused 32 | // and on any theory of liability, whether in contract, strict liability, 33 | // or tort (including negligence or otherwise) arising in any way out of 34 | // the use of this software, even if advised of the possibility of such damage. 35 | // 36 | //M*/ 37 | 38 | #ifndef MAPPERGRADSHIFT_H_ 39 | #define MAPPERGRADSHIFT_H_ 40 | 41 | #include "mapper.hpp" 42 | 43 | namespace cv { 44 | namespace reg { 45 | 46 | //! @addtogroup reg 47 | //! @{ 48 | 49 | /*! 50 | * Gradient mapper for a translation 51 | */ 52 | class CV_EXPORTS MapperGradShift: public Mapper 53 | { 54 | public: 55 | MapperGradShift(void); 56 | virtual ~MapperGradShift(void); 57 | 58 | virtual void calculate(const cv::Mat& img1, const cv::Mat& img2, cv::Ptr& res) const; 59 | 60 | cv::Ptr getMap(void) const; 61 | }; 62 | 63 | //! @} 64 | 65 | }} // namespace cv::reg 66 | 67 | #endif // MAPPERGRADSHIFT_H_ 68 | -------------------------------------------------------------------------------- /include/opencv2/reg/mappergradsimilar.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // Copyright (C) 2013, Alfonso Sanchez-Beato, all rights reserved. 10 | // Third party copyrights are property of their respective owners. 11 | // 12 | // Redistribution and use in source and binary forms, with or without modification, 13 | // are permitted provided that the following conditions are met: 14 | // 15 | // * Redistribution's of source code must retain the above copyright notice, 16 | // this list of conditions and the following disclaimer. 17 | // 18 | // * Redistribution's in binary form must reproduce the above copyright notice, 19 | // this list of conditions and the following disclaimer in the documentation 20 | // and/or other materials provided with the distribution. 21 | // 22 | // * The name of the copyright holders may not be used to endorse or promote products 23 | // derived from this software without specific prior written permission. 24 | // 25 | // This software is provided by the copyright holders and contributors "as is" and 26 | // any express or implied warranties, including, but not limited to, the implied 27 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 28 | // In no event shall the contributors be liable for any direct, 29 | // indirect, incidental, special, exemplary, or consequential damages 30 | // (including, but not limited to, procurement of substitute goods or services; 31 | // loss of use, data, or profits; or business interruption) however caused 32 | // and on any theory of liability, whether in contract, strict liability, 33 | // or tort (including negligence or otherwise) arising in any way out of 34 | // the use of this software, even if advised of the possibility of such damage. 35 | // 36 | //M*/ 37 | 38 | #ifndef MAPPERGRADSIMILAR_H_ 39 | #define MAPPERGRADSIMILAR_H_ 40 | 41 | #include "mapper.hpp" 42 | 43 | namespace cv { 44 | namespace reg { 45 | 46 | //! @addtogroup reg 47 | //! @{ 48 | 49 | /*! 50 | * Calculates a similarity transformation between to images (scale, rotation, and shift) 51 | */ 52 | class CV_EXPORTS MapperGradSimilar: public Mapper 53 | { 54 | public: 55 | MapperGradSimilar(void); 56 | ~MapperGradSimilar(void); 57 | 58 | virtual void calculate(const cv::Mat& img1, const cv::Mat& img2, cv::Ptr& res) const; 59 | 60 | cv::Ptr getMap(void) const; 61 | }; 62 | 63 | //! @} 64 | 65 | }} // namespace cv::reg 66 | 67 | #endif // MAPPERGRADSIMILAR_H_ 68 | -------------------------------------------------------------------------------- /include/opencv2/reg/mapperpyramid.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // Copyright (C) 2013, Alfonso Sanchez-Beato, all rights reserved. 10 | // Third party copyrights are property of their respective owners. 11 | // 12 | // Redistribution and use in source and binary forms, with or without modification, 13 | // are permitted provided that the following conditions are met: 14 | // 15 | // * Redistribution's of source code must retain the above copyright notice, 16 | // this list of conditions and the following disclaimer. 17 | // 18 | // * Redistribution's in binary form must reproduce the above copyright notice, 19 | // this list of conditions and the following disclaimer in the documentation 20 | // and/or other materials provided with the distribution. 21 | // 22 | // * The name of the copyright holders may not be used to endorse or promote products 23 | // derived from this software without specific prior written permission. 24 | // 25 | // This software is provided by the copyright holders and contributors "as is" and 26 | // any express or implied warranties, including, but not limited to, the implied 27 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 28 | // In no event shall the contributors be liable for any direct, 29 | // indirect, incidental, special, exemplary, or consequential damages 30 | // (including, but not limited to, procurement of substitute goods or services; 31 | // loss of use, data, or profits; or business interruption) however caused 32 | // and on any theory of liability, whether in contract, strict liability, 33 | // or tort (including negligence or otherwise) arising in any way out of 34 | // the use of this software, even if advised of the possibility of such damage. 35 | // 36 | //M*/ 37 | 38 | #ifndef MAPPERPYRAMID_H_ 39 | #define MAPPERPYRAMID_H_ 40 | 41 | #include "mapper.hpp" 42 | 43 | 44 | namespace cv { 45 | namespace reg { 46 | 47 | //! @addtogroup reg 48 | //! @{ 49 | 50 | /*! 51 | * Calculates a map using a gaussian pyramid 52 | */ 53 | class CV_EXPORTS MapperPyramid: public Mapper 54 | { 55 | public: 56 | /* 57 | * Constructor 58 | * \param[in] baseMapper Base mapper used for the refinements 59 | */ 60 | MapperPyramid(const Mapper& baseMapper); 61 | 62 | void calculate(const cv::Mat& img1, const cv::Mat& img2, cv::Ptr& res) const; 63 | 64 | cv::Ptr getMap(void) const; 65 | 66 | unsigned numLev_; /*!< Number of levels of the pyramid */ 67 | unsigned numIterPerScale_; /*!< Number of iterations at a given scale of the pyramid */ 68 | 69 | private: 70 | MapperPyramid& operator=(const MapperPyramid&); 71 | const Mapper& baseMapper_; /*!< Mapper used in inner level */ 72 | }; 73 | 74 | //! @} 75 | 76 | }} // namespace cv::reg 77 | 78 | #endif // MAPPERPYRAMID_H_ 79 | -------------------------------------------------------------------------------- /include/opencv2/shape.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009-2012, Willow Garage Inc., all rights reserved. 15 | // Third party copyrights are property of their respective owners. 16 | // 17 | // Redistribution and use in source and binary forms, with or without modification, 18 | // are permitted provided that the following conditions are met: 19 | // 20 | // * Redistribution's of source code must retain the above copyright notice, 21 | // this list of conditions and the following disclaimer. 22 | // 23 | // * Redistribution's in binary form must reproduce the above copyright notice, 24 | // this list of conditions and the following disclaimer in the documentation 25 | // and/or other materials provided with the distribution. 26 | // 27 | // * The name of the copyright holders may not be used to endorse or promote products 28 | // derived from this software without specific prior written permission. 29 | // 30 | // This software is provided by the copyright holders and contributors "as is" and 31 | // any express or implied warranties, including, but not limited to, the implied 32 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 33 | // In no event shall the Intel Corporation or contributors be liable for any direct, 34 | // indirect, incidental, special, exemplary, or consequential damages 35 | // (including, but not limited to, procurement of substitute goods or services; 36 | // loss of use, data, or profits; or business interruption) however caused 37 | // and on any theory of liability, whether in contract, strict liability, 38 | // or tort (including negligence or otherwise) arising in any way out of 39 | // the use of this software, even if advised of the possibility of such damage. 40 | // 41 | //M*/ 42 | 43 | #ifndef OPENCV_SHAPE_HPP 44 | #define OPENCV_SHAPE_HPP 45 | 46 | #include "opencv2/shape/emdL1.hpp" 47 | #include "opencv2/shape/shape_transformer.hpp" 48 | #include "opencv2/shape/hist_cost.hpp" 49 | #include "opencv2/shape/shape_distance.hpp" 50 | 51 | /** 52 | @defgroup shape Shape Distance and Matching 53 | */ 54 | 55 | #endif 56 | 57 | /* End of file. */ 58 | -------------------------------------------------------------------------------- /include/opencv2/shape/shape.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Copyright (C) 2013, OpenCV Foundation, all rights reserved. 16 | // Third party copyrights are property of their respective owners. 17 | // 18 | // Redistribution and use in source and binary forms, with or without modification, 19 | // are permitted provided that the following conditions are met: 20 | // 21 | // * Redistribution's of source code must retain the above copyright notice, 22 | // this list of conditions and the following disclaimer. 23 | // 24 | // * Redistribution's in binary form must reproduce the above copyright notice, 25 | // this list of conditions and the following disclaimer in the documentation 26 | // and/or other materials provided with the distribution. 27 | // 28 | // * The name of the copyright holders may not be used to endorse or promote products 29 | // derived from this software without specific prior written permission. 30 | // 31 | // This software is provided by the copyright holders and contributors "as is" and 32 | // any express or implied warranties, including, but not limited to, the implied 33 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 34 | // In no event shall the Intel Corporation or contributors be liable for any direct, 35 | // indirect, incidental, special, exemplary, or consequential damages 36 | // (including, but not limited to, procurement of substitute goods or services; 37 | // loss of use, data, or profits; or business interruption) however caused 38 | // and on any theory of liability, whether in contract, strict liability, 39 | // or tort (including negligence or otherwise) arising in any way out of 40 | // the use of this software, even if advised of the possibility of such damage. 41 | // 42 | //M*/ 43 | 44 | #ifdef __OPENCV_BUILD 45 | #error this is a compatibility header which should not be used inside the OpenCV library 46 | #endif 47 | 48 | #include "opencv2/shape.hpp" 49 | -------------------------------------------------------------------------------- /include/opencv2/stereo/stereo.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Copyright (C) 2013, OpenCV Foundation, all rights reserved. 16 | // Third party copyrights are property of their respective owners. 17 | // 18 | // Redistribution and use in source and binary forms, with or without modification, 19 | // are permitted provided that the following conditions are met: 20 | // 21 | // * Redistribution's of source code must retain the above copyright notice, 22 | // this list of conditions and the following disclaimer. 23 | // 24 | // * Redistribution's in binary form must reproduce the above copyright notice, 25 | // this list of conditions and the following disclaimer in the documentation 26 | // and/or other materials provided with the distribution. 27 | // 28 | // * The name of the copyright holders may not be used to endorse or promote products 29 | // derived from this software without specific prior written permission. 30 | // 31 | // This software is provided by the copyright holders and contributors "as is" and 32 | // any express or implied warranties, including, but not limited to, the implied 33 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 34 | // In no event shall the Intel Corporation or contributors be liable for any direct, 35 | // indirect, incidental, special, exemplary, or consequential damages 36 | // (including, but not limited to, procurement of substitute goods or services; 37 | // loss of use, data, or profits; or business interruption) however caused 38 | // and on any theory of liability, whether in contract, strict liability, 39 | // or tort (including negligence or otherwise) arising in any way out of 40 | // the use of this software, even if advised of the possibility of such damage. 41 | // 42 | //M*/ 43 | 44 | #ifdef __OPENCV_BUILD 45 | #error this is a compatibility header which should not be used inside the OpenCV library 46 | #endif 47 | 48 | #include "opencv2/stereo.hpp" 49 | 50 | -------------------------------------------------------------------------------- /include/opencv2/video.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Copyright (C) 2013, OpenCV Foundation, all rights reserved. 16 | // Third party copyrights are property of their respective owners. 17 | // 18 | // Redistribution and use in source and binary forms, with or without modification, 19 | // are permitted provided that the following conditions are met: 20 | // 21 | // * Redistribution's of source code must retain the above copyright notice, 22 | // this list of conditions and the following disclaimer. 23 | // 24 | // * Redistribution's in binary form must reproduce the above copyright notice, 25 | // this list of conditions and the following disclaimer in the documentation 26 | // and/or other materials provided with the distribution. 27 | // 28 | // * The name of the copyright holders may not be used to endorse or promote products 29 | // derived from this software without specific prior written permission. 30 | // 31 | // This software is provided by the copyright holders and contributors "as is" and 32 | // any express or implied warranties, including, but not limited to, the implied 33 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 34 | // In no event shall the Intel Corporation or contributors be liable for any direct, 35 | // indirect, incidental, special, exemplary, or consequential damages 36 | // (including, but not limited to, procurement of substitute goods or services; 37 | // loss of use, data, or profits; or business interruption) however caused 38 | // and on any theory of liability, whether in contract, strict liability, 39 | // or tort (including negligence or otherwise) arising in any way out of 40 | // the use of this software, even if advised of the possibility of such damage. 41 | // 42 | //M*/ 43 | 44 | #ifndef OPENCV_VIDEO_HPP 45 | #define OPENCV_VIDEO_HPP 46 | 47 | /** 48 | @defgroup video Video Analysis 49 | @{ 50 | @defgroup video_motion Motion Analysis 51 | @defgroup video_track Object Tracking 52 | @defgroup video_c C API 53 | @} 54 | */ 55 | 56 | #include "opencv2/video/tracking.hpp" 57 | #include "opencv2/video/background_segm.hpp" 58 | 59 | #ifndef DISABLE_OPENCV_24_COMPATIBILITY 60 | #include "opencv2/video/tracking_c.h" 61 | #endif 62 | 63 | #endif //OPENCV_VIDEO_HPP 64 | -------------------------------------------------------------------------------- /include/opencv2/video/video.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Copyright (C) 2013, OpenCV Foundation, all rights reserved. 16 | // Third party copyrights are property of their respective owners. 17 | // 18 | // Redistribution and use in source and binary forms, with or without modification, 19 | // are permitted provided that the following conditions are met: 20 | // 21 | // * Redistribution's of source code must retain the above copyright notice, 22 | // this list of conditions and the following disclaimer. 23 | // 24 | // * Redistribution's in binary form must reproduce the above copyright notice, 25 | // this list of conditions and the following disclaimer in the documentation 26 | // and/or other materials provided with the distribution. 27 | // 28 | // * The name of the copyright holders may not be used to endorse or promote products 29 | // derived from this software without specific prior written permission. 30 | // 31 | // This software is provided by the copyright holders and contributors "as is" and 32 | // any express or implied warranties, including, but not limited to, the implied 33 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 34 | // In no event shall the Intel Corporation or contributors be liable for any direct, 35 | // indirect, incidental, special, exemplary, or consequential damages 36 | // (including, but not limited to, procurement of substitute goods or services; 37 | // loss of use, data, or profits; or business interruption) however caused 38 | // and on any theory of liability, whether in contract, strict liability, 39 | // or tort (including negligence or otherwise) arising in any way out of 40 | // the use of this software, even if advised of the possibility of such damage. 41 | // 42 | //M*/ 43 | 44 | #ifdef __OPENCV_BUILD 45 | #error this is a compatibility header which should not be used inside the OpenCV library 46 | #endif 47 | 48 | #include "opencv2/video.hpp" 49 | -------------------------------------------------------------------------------- /include/opencv2/videoio/videoio.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Copyright (C) 2013, OpenCV Foundation, all rights reserved. 16 | // Third party copyrights are property of their respective owners. 17 | // 18 | // Redistribution and use in source and binary forms, with or without modification, 19 | // are permitted provided that the following conditions are met: 20 | // 21 | // * Redistribution's of source code must retain the above copyright notice, 22 | // this list of conditions and the following disclaimer. 23 | // 24 | // * Redistribution's in binary form must reproduce the above copyright notice, 25 | // this list of conditions and the following disclaimer in the documentation 26 | // and/or other materials provided with the distribution. 27 | // 28 | // * The name of the copyright holders may not be used to endorse or promote products 29 | // derived from this software without specific prior written permission. 30 | // 31 | // This software is provided by the copyright holders and contributors "as is" and 32 | // any express or implied warranties, including, but not limited to, the implied 33 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 34 | // In no event shall the Intel Corporation or contributors be liable for any direct, 35 | // indirect, incidental, special, exemplary, or consequential damages 36 | // (including, but not limited to, procurement of substitute goods or services; 37 | // loss of use, data, or profits; or business interruption) however caused 38 | // and on any theory of liability, whether in contract, strict liability, 39 | // or tort (including negligence or otherwise) arising in any way out of 40 | // the use of this software, even if advised of the possibility of such damage. 41 | // 42 | //M*/ 43 | 44 | #ifdef __OPENCV_BUILD 45 | #error this is a compatibility header which should not be used inside the OpenCV library 46 | #endif 47 | 48 | #include "opencv2/videoio.hpp" 49 | -------------------------------------------------------------------------------- /include/opencv2/videostab/log.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009-2011, Willow Garage Inc., all rights reserved. 15 | // Third party copyrights are property of their respective owners. 16 | // 17 | // Redistribution and use in source and binary forms, with or without modification, 18 | // are permitted provided that the following conditions are met: 19 | // 20 | // * Redistribution's of source code must retain the above copyright notice, 21 | // this list of conditions and the following disclaimer. 22 | // 23 | // * Redistribution's in binary form must reproduce the above copyright notice, 24 | // this list of conditions and the following disclaimer in the documentation 25 | // and/or other materials provided with the distribution. 26 | // 27 | // * The name of the copyright holders may not be used to endorse or promote products 28 | // derived from this software without specific prior written permission. 29 | // 30 | // This software is provided by the copyright holders and contributors "as is" and 31 | // any express or implied warranties, including, but not limited to, the implied 32 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 33 | // In no event shall the Intel Corporation or contributors be liable for any direct, 34 | // indirect, incidental, special, exemplary, or consequential damages 35 | // (including, but not limited to, procurement of substitute goods or services; 36 | // loss of use, data, or profits; or business interruption) however caused 37 | // and on any theory of liability, whether in contract, strict liability, 38 | // or tort (including negligence or otherwise) arising in any way out of 39 | // the use of this software, even if advised of the possibility of such damage. 40 | // 41 | //M*/ 42 | 43 | #ifndef OPENCV_VIDEOSTAB_LOG_HPP 44 | #define OPENCV_VIDEOSTAB_LOG_HPP 45 | 46 | #include "opencv2/core.hpp" 47 | 48 | namespace cv 49 | { 50 | namespace videostab 51 | { 52 | 53 | //! @addtogroup videostab 54 | //! @{ 55 | 56 | class CV_EXPORTS ILog 57 | { 58 | public: 59 | virtual ~ILog() {} 60 | virtual void print(const char *format, ...) = 0; 61 | }; 62 | 63 | class CV_EXPORTS NullLog : public ILog 64 | { 65 | public: 66 | virtual void print(const char * /*format*/, ...) {} 67 | }; 68 | 69 | class CV_EXPORTS LogToStdout : public ILog 70 | { 71 | public: 72 | virtual void print(const char *format, ...); 73 | }; 74 | 75 | //! @} 76 | 77 | } // namespace videostab 78 | } // namespace cv 79 | 80 | #endif 81 | -------------------------------------------------------------------------------- /include/opencv2/videostab/ring_buffer.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009-2011, Willow Garage Inc., all rights reserved. 15 | // Third party copyrights are property of their respective owners. 16 | // 17 | // Redistribution and use in source and binary forms, with or without modification, 18 | // are permitted provided that the following conditions are met: 19 | // 20 | // * Redistribution's of source code must retain the above copyright notice, 21 | // this list of conditions and the following disclaimer. 22 | // 23 | // * Redistribution's in binary form must reproduce the above copyright notice, 24 | // this list of conditions and the following disclaimer in the documentation 25 | // and/or other materials provided with the distribution. 26 | // 27 | // * The name of the copyright holders may not be used to endorse or promote products 28 | // derived from this software without specific prior written permission. 29 | // 30 | // This software is provided by the copyright holders and contributors "as is" and 31 | // any express or implied warranties, including, but not limited to, the implied 32 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 33 | // In no event shall the Intel Corporation or contributors be liable for any direct, 34 | // indirect, incidental, special, exemplary, or consequential damages 35 | // (including, but not limited to, procurement of substitute goods or services; 36 | // loss of use, data, or profits; or business interruption) however caused 37 | // and on any theory of liability, whether in contract, strict liability, 38 | // or tort (including negligence or otherwise) arising in any way out of 39 | // the use of this software, even if advised of the possibility of such damage. 40 | // 41 | //M*/ 42 | 43 | #ifndef OPENCV_VIDEOSTAB_RING_BUFFER_HPP 44 | #define OPENCV_VIDEOSTAB_RING_BUFFER_HPP 45 | 46 | #include 47 | #include "opencv2/imgproc.hpp" 48 | 49 | namespace cv 50 | { 51 | namespace videostab 52 | { 53 | 54 | //! @addtogroup videostab 55 | //! @{ 56 | 57 | template inline T& at(int idx, std::vector &items) 58 | { 59 | return items[cv::borderInterpolate(idx, static_cast(items.size()), cv::BORDER_WRAP)]; 60 | } 61 | 62 | template inline const T& at(int idx, const std::vector &items) 63 | { 64 | return items[cv::borderInterpolate(idx, static_cast(items.size()), cv::BORDER_WRAP)]; 65 | } 66 | 67 | //! @} 68 | 69 | } // namespace videostab 70 | } // namespace cv 71 | 72 | #endif 73 | -------------------------------------------------------------------------------- /include/opencv2/ximgproc/paillou_filter.hpp: -------------------------------------------------------------------------------- 1 | /* 2 | * By downloading, copying, installing or using the software you agree to this license. 3 | * If you do not agree to this license, do not download, install, 4 | * copy or use the software. 5 | * 6 | * 7 | * License Agreement 8 | * For Open Source Computer Vision Library 9 | * (3 - clause BSD License) 10 | * 11 | * Redistribution and use in source and binary forms, with or without modification, 12 | * are permitted provided that the following conditions are met : 13 | * 14 | * * Redistributions of source code must retain the above copyright notice, 15 | * this list of conditions and the following disclaimer. 16 | * 17 | * * Redistributions in binary form must reproduce the above copyright notice, 18 | * this list of conditions and the following disclaimer in the documentation 19 | * and / or other materials provided with the distribution. 20 | * 21 | * * Neither the names of the copyright holders nor the names of the contributors 22 | * may be used to endorse or promote products derived from this software 23 | * without specific prior written permission. 24 | * 25 | * This software is provided by the copyright holders and contributors "as is" and 26 | * any express or implied warranties, including, but not limited to, the implied 27 | * warranties of merchantability and fitness for a particular purpose are disclaimed. 28 | * In no event shall copyright holders or contributors be liable for any direct, 29 | * indirect, incidental, special, exemplary, or consequential damages 30 | * (including, but not limited to, procurement of substitute goods or services; 31 | * loss of use, data, or profits; or business interruption) however caused 32 | * and on any theory of liability, whether in contract, strict liability, 33 | * or tort(including negligence or otherwise) arising in any way out of 34 | * the use of this software, even if advised of the possibility of such damage. 35 | */ 36 | 37 | #ifndef __OPENCV_PAILLOUFILTER_HPP__ 38 | #define __OPENCV_PAILLOUFILTER_HPP__ 39 | #ifdef __cplusplus 40 | 41 | #include 42 | 43 | namespace cv { 44 | namespace ximgproc { 45 | 46 | //! @addtogroup ximgproc_filters 47 | //! @{ 48 | 49 | /** 50 | * @brief Applies Paillou filter to an image. 51 | * 52 | * For more details about this implementation, please see @cite paillou1997detecting 53 | * 54 | * @param op Source 8-bit or 16bit image, 1-channel or 3-channel image. 55 | * @param _dst result CV_32F image with same numeber of channel than op. 56 | * @param omega double see paper 57 | * @param alpha double see paper 58 | * 59 | * @sa GradientPaillouX, GradientPaillouY 60 | */ 61 | CV_EXPORTS void GradientPaillouY(InputArray op, OutputArray _dst, double alpha, double omega); 62 | CV_EXPORTS void GradientPaillouX(InputArray op, OutputArray _dst, double alpha, double omega); 63 | 64 | } 65 | } 66 | #endif 67 | #endif 68 | -------------------------------------------------------------------------------- /include/opencv2/xphoto.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Third party copyrights are property of their respective owners. 16 | // 17 | // Redistribution and use in source and binary forms, with or without modification, 18 | // are permitted provided that the following conditions are met: 19 | // 20 | // * Redistribution's of source code must retain the above copyright notice, 21 | // this list of conditions and the following disclaimer. 22 | // 23 | // * Redistribution's in binary form must reproduce the above copyright notice, 24 | // this list of conditions and the following disclaimer in the documentation 25 | // and/or other materials provided with the distribution. 26 | // 27 | // * The name of the copyright holders may not be used to endorse or promote products 28 | // derived from this software without specific prior written permission. 29 | // 30 | // This software is provided by the copyright holders and contributors "as is" and 31 | // any express or implied warranties, including, but not limited to, the implied 32 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 33 | // In no event shall the Intel Corporation or contributors be liable for any direct, 34 | // indirect, incidental, special, exemplary, or consequential damages 35 | // (including, but not limited to, procurement of substitute goods or services; 36 | // loss of use, data, or profits; or business interruption) however caused 37 | // and on any theory of liability, whether in contract, strict liability, 38 | // or tort (including negligence or otherwise) arising in any way out of 39 | // the use of this software, even if advised of the possibility of such damage. 40 | // 41 | //M*/ 42 | 43 | #ifndef __OPENCV_XPHOTO_HPP__ 44 | #define __OPENCV_XPHOTO_HPP__ 45 | 46 | /** @defgroup xphoto Additional photo processing algorithms 47 | */ 48 | 49 | #include "xphoto/inpainting.hpp" 50 | #include "xphoto/white_balance.hpp" 51 | #include "xphoto/dct_image_denoising.hpp" 52 | #include "xphoto/bm3d_image_denoising.hpp" 53 | #endif 54 | -------------------------------------------------------------------------------- /include/postprocess.h: -------------------------------------------------------------------------------- 1 | #ifndef _RKNN_ZERO_COPY_DEMO_POSTPROCESS_H_ 2 | #define _RKNN_ZERO_COPY_DEMO_POSTPROCESS_H_ 3 | 4 | #include 5 | 6 | #define OBJ_NAME_MAX_SIZE 16 7 | #define OBJ_NUMB_MAX_SIZE 64 8 | #define OBJ_CLASS_NUM 3 9 | #define PROP_BOX_SIZE (5+OBJ_CLASS_NUM) 10 | 11 | typedef struct _BOX_RECT 12 | { 13 | int left; 14 | int right; 15 | int top; 16 | int bottom; 17 | } BOX_RECT; 18 | 19 | typedef struct __detect_result_t 20 | { 21 | char name[OBJ_NAME_MAX_SIZE]; 22 | BOX_RECT box; 23 | float prop; 24 | } detect_result_t; 25 | 26 | typedef struct _detect_result_group_t 27 | { 28 | int id; 29 | int count; 30 | detect_result_t results[OBJ_NUMB_MAX_SIZE]; 31 | } detect_result_group_t; 32 | 33 | int post_process(uint8_t *input0, uint8_t *input1, uint8_t *input2, int model_in_h, int model_in_w, 34 | float conf_threshold, float nms_threshold, float vis_threshold, float scale_w, float scale_h, 35 | std::vector &qnt_zps, std::vector &qnt_scales, 36 | detect_result_group_t *group); 37 | 38 | #endif //_RKNN_ZERO_COPY_DEMO_POSTPROCESS_H_ 39 | -------------------------------------------------------------------------------- /include/tool.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaqing10/RKNN_YOLOV5S_CPP/49c7731036450a01c78b0e34d799a6a61a5b1b37/include/tool.h -------------------------------------------------------------------------------- /libs/libopencv_core.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaqing10/RKNN_YOLOV5S_CPP/49c7731036450a01c78b0e34d799a6a61a5b1b37/libs/libopencv_core.so -------------------------------------------------------------------------------- /libs/libopencv_core.so.3.4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaqing10/RKNN_YOLOV5S_CPP/49c7731036450a01c78b0e34d799a6a61a5b1b37/libs/libopencv_core.so.3.4 -------------------------------------------------------------------------------- /libs/libopencv_core.so.3.4.1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaqing10/RKNN_YOLOV5S_CPP/49c7731036450a01c78b0e34d799a6a61a5b1b37/libs/libopencv_core.so.3.4.1 -------------------------------------------------------------------------------- /libs/libopencv_flann.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaqing10/RKNN_YOLOV5S_CPP/49c7731036450a01c78b0e34d799a6a61a5b1b37/libs/libopencv_flann.so -------------------------------------------------------------------------------- /libs/libopencv_highgui.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaqing10/RKNN_YOLOV5S_CPP/49c7731036450a01c78b0e34d799a6a61a5b1b37/libs/libopencv_highgui.so -------------------------------------------------------------------------------- /libs/libopencv_highgui.so.3.4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaqing10/RKNN_YOLOV5S_CPP/49c7731036450a01c78b0e34d799a6a61a5b1b37/libs/libopencv_highgui.so.3.4 -------------------------------------------------------------------------------- /libs/libopencv_highgui.so.3.4.1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaqing10/RKNN_YOLOV5S_CPP/49c7731036450a01c78b0e34d799a6a61a5b1b37/libs/libopencv_highgui.so.3.4.1 -------------------------------------------------------------------------------- /libs/libopencv_imgcodecs.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaqing10/RKNN_YOLOV5S_CPP/49c7731036450a01c78b0e34d799a6a61a5b1b37/libs/libopencv_imgcodecs.so -------------------------------------------------------------------------------- /libs/libopencv_imgcodecs.so.3.4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaqing10/RKNN_YOLOV5S_CPP/49c7731036450a01c78b0e34d799a6a61a5b1b37/libs/libopencv_imgcodecs.so.3.4 -------------------------------------------------------------------------------- /libs/libopencv_imgcodecs.so.3.4.1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaqing10/RKNN_YOLOV5S_CPP/49c7731036450a01c78b0e34d799a6a61a5b1b37/libs/libopencv_imgcodecs.so.3.4.1 -------------------------------------------------------------------------------- /libs/libopencv_imgproc.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaqing10/RKNN_YOLOV5S_CPP/49c7731036450a01c78b0e34d799a6a61a5b1b37/libs/libopencv_imgproc.so -------------------------------------------------------------------------------- /libs/libopencv_imgproc.so.3.4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaqing10/RKNN_YOLOV5S_CPP/49c7731036450a01c78b0e34d799a6a61a5b1b37/libs/libopencv_imgproc.so.3.4 -------------------------------------------------------------------------------- /libs/libopencv_imgproc.so.3.4.1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaqing10/RKNN_YOLOV5S_CPP/49c7731036450a01c78b0e34d799a6a61a5b1b37/libs/libopencv_imgproc.so.3.4.1 -------------------------------------------------------------------------------- /libs/libopencv_video.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaqing10/RKNN_YOLOV5S_CPP/49c7731036450a01c78b0e34d799a6a61a5b1b37/libs/libopencv_video.so -------------------------------------------------------------------------------- /libs/libopencv_videoio.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaqing10/RKNN_YOLOV5S_CPP/49c7731036450a01c78b0e34d799a6a61a5b1b37/libs/libopencv_videoio.so -------------------------------------------------------------------------------- /libs/libopencv_videoio.so.3.4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaqing10/RKNN_YOLOV5S_CPP/49c7731036450a01c78b0e34d799a6a61a5b1b37/libs/libopencv_videoio.so.3.4 -------------------------------------------------------------------------------- /libs/libopencv_videoio.so.3.4.1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaqing10/RKNN_YOLOV5S_CPP/49c7731036450a01c78b0e34d799a6a61a5b1b37/libs/libopencv_videoio.so.3.4.1 -------------------------------------------------------------------------------- /libs/librknn_api.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaqing10/RKNN_YOLOV5S_CPP/49c7731036450a01c78b0e34d799a6a61a5b1b37/libs/librknn_api.so -------------------------------------------------------------------------------- /model/coco_80_labels_list.txt: -------------------------------------------------------------------------------- 1 | p1 2 | p2 3 | p3 4 | -------------------------------------------------------------------------------- /model/rk180x/yolov5s_relu_rk180x_out_opt.rknn: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaqing10/RKNN_YOLOV5S_CPP/49c7731036450a01c78b0e34d799a6a61a5b1b37/model/rk180x/yolov5s_relu_rk180x_out_opt.rknn -------------------------------------------------------------------------------- /model/rv1109_rv1126/yolov5s_relu_rv1109_rv1126_out_opt.rknn: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaqing10/RKNN_YOLOV5S_CPP/49c7731036450a01c78b0e34d799a6a61a5b1b37/model/rv1109_rv1126/yolov5s_relu_rv1109_rv1126_out_opt.rknn -------------------------------------------------------------------------------- /model/test1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaqing10/RKNN_YOLOV5S_CPP/49c7731036450a01c78b0e34d799a6a61a5b1b37/model/test1.jpg -------------------------------------------------------------------------------- /model/test2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaqing10/RKNN_YOLOV5S_CPP/49c7731036450a01c78b0e34d799a6a61a5b1b37/model/test2.jpg --------------------------------------------------------------------------------