![]() Mask = cv2. # sort through and grab the most abundant unique color Unique_colors, counts = np.unique(s, return_counts=True) Hsv = cv2.cvtColor(img, cv2.COLOR_BGR2HSV) Out = cv2.VideoWriter('test_vid.avi',fourcc, 30.0, res) There's still some green outline, but I can't increase the color margin any more without chopping out bits of clothes.Įdit: wrapped the code inside of a video loop.Įdit 2: I added a VideoWriter to save the results and swapped over to using the saturation channel since it had better separation.įourcc = cv2.VideoWriter_fourcc(*'XVID') living room wall bedroom empty room office interior background zoom backgrounds home window kitchen interior design forest vintage green screen background landscape office background flowers paint dark room car art house architecture hd background girl abstract night table bathroom. ![]() I did my best to mask out the screen using the HSV color space.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |