Upload
farshid-pirahansiah
View
1.878
Download
0
Embed Size (px)
Citation preview
COMPUTER VISION OPENCV 3.2 Farshid PirahanSiah www.tiziran.com https://www.youtube.com/tiziran
2017
COMPILE • Compile windows 10 (64 bit), Visual Studio 2015, OpenCV + contribute • Without GPU• https://github.com/opencv/opencv • https://github.com/opencv/opencv_contrib • Open cmake
• Path of OpenCV source code (OpenCV master)• Path to build folder (not inside the OpenCV source code folder )• Click on configure • Insert the path of OpenCV contribute into “OPENCV_EXTRA_MODULES_PATH”
• C:/opencv32/opencv_contrib-master/modules • Click on configure again • Click on generate
• Open the “OpenCV.sln” file (the OpenCV project in visual studio)• Build Debug and release based x64 • Build install
OPENCV 3.2• http://docs.opencv.org/master/ • Main modules:
• core. Core functionality• imgproc. Image processing• imgcodecs. Image file reading and writing• videoio. Video I/O• highgui. High-level GUI• video. Video Analysis• calib3d.
Camera Calibration and 3D Reconstruction• features2d. 2D Features Framework• objdetect. Object Detection• ml. Machine Learning• flann.
Clustering and Search in Multi-Dimensional Spaces
• photo. Computational Photography• stitching. Images stitching• cudaarithm. Operations on Matrices• cudabgsegm. Background Segmentation• cudacodec. Video Encoding/Decoding• cudafeatures2d.
Feature Detection and Description• cudafilters. Image Filtering• cudaimgproc. Image Processing• cudalegacy. Legacy support
• cudaobjdetect. Object Detection• cudaoptflow. Optical Flow• cudastereo. Stereo Correspondence• cudawarping. Image Warping• cudev. Device layer• shape. Shape Distance and Matching• superres. Super Resolution• videostab. Video Stabilization• viz. 3D Visualizer
• Extra modules:• aruco. ArUco Marker Detection• bgsegm.
Improved Background-Foreground Segmentation Methods
• bioinspired. Biologically inspired vision models and derivated tools
• ccalib. Custom Calibration Pattern for 3D reconstruction
• cnn_3dobj. 3D object recognition and pose estimation API
• cvv. GUI for Interactive Visual Debugging of Computer Vision Programs
• datasets. Framework for working with different datasets
• dnn. Deep Neural Network module• dpm. Deformable Part-based Models
• face. Face Recognition• freetype. Drawing UTF-8 strings with freetype/
harfbuzz• fuzzy.
Image processing based on fuzzy mathematics• hdf. Hierarchical Data Format I/O routines• line_descriptor.
Binary descriptors for lines extracted from an image
• matlab. MATLAB Bridge• optflow. Optical Flow Algorithms• phase_unwrapping. Phase Unwrapping API• plot. Plot function for Mat data• reg. Image Registration• rgbd. RGB-Depth Processing• saliency. Saliency API• sfm. Structure From Motion• stereo. Stereo Correspondance Algorithms• structured_light. Structured Light API• surface_matching. Surface Matching• text. Scene Text Detection and Recognition• tracking. Tracking API• xfeatures2d. Extra 2D Features Framework• ximgproc. Extended Image Processing• xobjdetect. Extended object detection• xphoto. Additional photo processing algorithms
INTRODUCTION • OpenCV version
• 1999 start project • 2006 version 1• 2009 version 2• 2015 version 3
• December 2016 version 3.2• Include file
• core.hpp• imgproc.hpp• video.hpp• highgui.hpp• contrib.hpp
HOW TO CONFIGURE VS PROJECT
HOW TO CONFIGURE VS PROJECT
HOW TO CONFIGURE VS PROJECT
LIBS • opencv_aruco320d.lib • opencv_bgsegm320d.lib• opencv_bioinspired320d.lib • opencv_calib3d320d.lib• opencv_ccalib320d.lib • opencv_core320d.lib• opencv_datasets320d.lib • opencv_dnn320d.lib• opencv_dpm320d.lib • opencv_face320d.lib• opencv_features2d320d.lib • opencv_flann320d.lib• opencv_fuzzy320d.lib • opencv_highgui320d.lib
• opencv_imgcodecs320d.lib • opencv_imgproc320d.lib• opencv_line_descriptor320d.lib • opencv_ml320d.lib• opencv_objdetect320d.lib • opencv_optflow320d.lib• opencv_phase_unwrapping320d.lib • opencv_photo320d.lib• opencv_plot320d.lib • opencv_reg320d.lib• opencv_rgbd320d.lib • opencv_saliency320d.lib• opencv_shape320d.lib • opencv_stereo320d.lib
• opencv_stitching320d.lib • opencv_structured_light320d.lib• opencv_superres320d.lib • opencv_surface_matching320d.lib• opencv_text320d.lib • opencv_tracking320d.lib• opencv_video320d.lib • opencv_videoio320d.lib• opencv_videostab320d.lib • opencv_xfeatures2d320d.lib• opencv_ximgproc320d.lib • opencv_xobjdetect320d.lib• opencv_xphoto320d.lib
FIRST PROGRAM • #include <opencv2/opencv.hpp>
• void main(void) {• cv::Mat img = cv::imread("c:\\farshidpirahansiah\\tiziran.png");• cv::imshow("Farshid", img);• cv::waitKey(100);• }
REFERENCE • YouTube channel
• https://www.youtube.com/tiziran • Slides
• http://www.slideshare.net/pirahansiah/layers-in-deep-learningcaffe-layers-model-architecture • http://www.slideshare.net/pirahansiah/how-to-install-digits-51-on-ubuntu-14 • http://
www.slideshare.net/pirahansiah/deep-learning-for-video-analysis-part-1-deepstream-sdk-nvidia-tensorrt-nvidia-gpu-inference-engine-gie
• http://www.slideshare.net/pirahansiah/computer-vision-deep-learning-opencv • Files and source code (download projects)
• www.tiziran.com• https://github.com/pirahansiah
• Group for Deep Learning and Computer Vision• https://www.linkedin.com/groups/10320678