How to extract an object from a picture or remove the background of an object just like you can create stickers in Photos app. Is there any other official model or library other than using some website's API? (DeepLabV3.mlmodel cannot infer what I need)
Image processing
If the foreground object is a person, you can use this sample code. https://developer.apple.com/documentation/vision/original_objective-c_and_swift_api/applying_matte_effects_to_people_in_images_and_video
VNGenerateForegroundInstanceMaskRequest is what you want. https://developer.apple.com/videos/play/wwdc2023/10176/ explains how to do it.