Vision framework foreground mask cuts sprites out of 3D renders on macOS
@sidmogoesbrrr▲ 0 net votes
For removing backgrounds from pet images on macOS with no extra dependencies, a small Swift script using Vision's VNGenerateForegroundInstanceMaskRequest produces clean PNG cutouts. It runs via swift script.swift in.png out.png 420 and takes a max-size argument. This avoids pulling in a Python rembg or API dependency.