virtual_webcam_background icon indicating copy to clipboard operation
virtual_webcam_background copied to clipboard

Halo Effect

Open allo- opened this issue 5 years ago • 1 comments

Add a halo over the head.

Current work in progress branch: https://github.com/allo-/virtual_webcam_background/tree/halo

TODO:

  • [x] calculate the y coordinate by the minimum y coordinate of the mask.
  • [x] When the center of mass is found, try to find the center of mass of the head only, otherwise the halo does not follow the head correctly.
  • [x] possibly use the segmentation output of bodypix to identify the head.
  • [x] Create a function for placing sprites that clips them correctly on the image frame.
  • [x] Extend the filter API to get the mask image as well or create a third class of filters between foreground and overlays
  • [ ] cv2.resize seems to lower the quality too much. What can be done to improve this? Everything but "INTER_AREA" looks awful and INTER_AREA is not smoothest either.
  • [ ] Create a nicer halo image or find a good public domain image.

Merging the current implementation depends on #6.

allo- avatar Apr 19 '20 15:04 allo-

Still to do:

  • cv2.resize seems to lower the quality too much. What can be done to improve this? Everything but "INTER_AREA" looks awful and INTER_AREA is not smoothest either.
  • Create a nicer halo image or find a good public domain image.

allo- avatar May 19 '20 21:05 allo-