Skip to content

mBerezovskyy/background_blur

Repository files navigation

background_blur

Own implementation of the most popular selfie algorithm with same neural network as in Google Pixel 3XL phone

Created using opencv and DeeplabV3+ with Xception71 backbone

Instalation and usage

run pip install -r requirements.txt
choose photo of arbitrary resolution and aspect ratio and save it in root project directory
substitute name of the file in line 7
run main.py file

Results

result1

result2

Future improvements:

  • Eliminate bluring of random blobs that do not represent body shape
  • Eliminate bluring parts of body as shoulder part in image 2
  • Make transition from segmented body to blured background smoother
  • Smooth detected body contour
  • Try different segmentation nn architectures for example Unet

About

Own implementation of the most popular selfie filter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages