virtual_webcam_background
virtual_webcam_background copied to clipboard
Halo Effect
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.resizeseems 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.
Still to do:
-
cv2.resizeseems 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.