OpenCV_ImageBackgroundRemoval-master

所属分类:OpenGL
开发工具:Visual C++
文件大小:958KB
下载次数:2
上传日期:2017-08-16 11:15:03
上 传 者soyoungsonaive
说明:  把简单背景图像过滤掉,只保留前景图像,太过于复杂的背景,比如森林街道效果会非常差
(Filter out the simple background image)

文件列表:
OpenCV_ImageBackgroundRemoval\human-t-pose.jpg (35006, 2014-08-07)
OpenCV_ImageBackgroundRemoval\main.cpp (4599, 2014-08-07)
OpenCV_ImageBackgroundRemoval\OpenCV_ImageBackgroundRemoval.vcxproj (3436, 2014-08-07)
OpenCV_ImageBackgroundRemoval\OpenCV_ImageBackgroundRemoval.vcxproj.filters (932, 2014-08-07)
OpenCV_ImageBackgroundRemoval\person1.jpg (524124, 2014-08-07)
OpenCV_ImageBackgroundRemoval\person2.jpg (468299, 2014-08-07)
OpenCV_ImageBackgroundRemoval\shoe.jpg (35961, 2014-08-07)
OpenCV_ImageBackgroundRemoval.sdf (327680, 2017-08-04)
OpenCV_ImageBackgroundRemoval.sln (934, 2014-08-07)
OpenCV_ImageBackgroundRemoval.v12.suo (25088, 2017-08-04)
OpenCV_ImageBackgroundRemoval (0, 2014-08-07)

OpenCV_ImageBackgroundRemoval ============================= Using openCV to remove image background and shadows. The algorithm used in this repository are largely adapted from this article: http://developers.lyst.com/data/images/2014/02/13/background-removal/ For this implementation, the steps used in shadow and background removal are: 1. Remove shadows by converting to HSV and setting V to a fixed value 2. Convert to grayscale and normalize 3. Apply gaussian blur and Canny edge detector 4. Dilate to close gaps 5. Flood fill the image from borders 6. Erode to account for previous dilation 7. Find largest contour 8. Mask original image This method requires the background to be relatively empty and have some contrast with the foreground. ========================================================== Some Example Images: ![alt tag](https://dl.dropboxusercontent.com/u/85089697/wordpress/OpenCV_ImageBackgroundRemoval/person2.jpg) ![alt tag](https://dl.dropboxusercontent.com/u/85089697/wordpress/OpenCV_ImageBackgroundRemoval/person2_floodFilled.png) ![alt tag](https://dl.dropboxusercontent.com/u/85089697/wordpress/OpenCV_ImageBackgroundRemoval/shoe.jpg) ![alt tag](https://dl.dropboxusercontent.com/u/85089697/wordpress/OpenCV_ImageBackgroundRemoval/shoe_srcMasked.png) ![alt tag](https://dl.dropboxusercontent.com/u/85089697/wordpress/OpenCV_ImageBackgroundRemoval/human-t-pose.jpg) ![alt tag](https://dl.dropboxusercontent.com/u/85089697/wordpress/OpenCV_ImageBackgroundRemoval/human-t-pose_mashup.png) Disclaimer: Images taken off the web for experimentation purposes and belong to their respective owners.

近期下载者

相关文件


收藏者