Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Background substitution from an image/video using FCN image segmentation

NotificationsYou must be signed in to change notification settings

vinayakarannil/Background_removal_using_image_segmentation

Repository files navigation

This project demonstrates how we can make use of image segmentation using a fully convolution network for efficient back ground substitution

Sample

Example ResultsExample ResultsExample Results

Description

This task makes use of a pre-trained FCN8s model(trained on pascal-voc) to create a segmentation mask only for the human presence.After getting the segmentation mask of human, we take the remaining as background mask and do some morphological operations to change the background to anything. Here for simplicity i replaced the background with white colour. Instead if you blurr the background mask and merge the object+background masks together you can get the famous "Bokeh effect"

You may download the FC8s checkpoint fromhere

For object available in pascal-voc we can make use of this pretrained model, if you need any other object to be extracted, you will have to train an FCN8s model for that object by collecting a lot of data and manually annotationg the segmentation. Then replace the model here to get the same result for your objectMost of the idea is taken from thisblog series

Requirements

  1. tesnorflow
  2. scipy
  3. PIL4.o pencv
  4. numpy
  5. skimage

About

If you used the code for your research, please, cite the paper:

@article{pakhomov2017deep,  title={Deep Residual Learning for Instrument Segmentation in Robotic Surgery},  author={Pakhomov, Daniil and Premachandran, Vittal and Allan, Max and Azizian, Mahdi and Navab, Nassir},  journal={arXiv preprint arXiv:1703.08580},  year={2017}}

references

  1. https://github.com/warmspringwinds/tf-image-segmentation

About

Background substitution from an image/video using FCN image segmentation

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp