@jacobjmc/react-native-background-remover
Version:
Enhanced React Native package for removing backgrounds from images containing people, objects, animals, and more using Apple's Vision framework
10 lines • 512 B
TypeScript
/**
* Removes the background from an image.
* Note: This method isn't usable on iOS simulators, you need to have a real device.
* @returns The URI of the image with the background removed.
* @returns the original URI if you are using an iOS simulator.
* @throws Error if the iOS device is not at least on iOS 15.0.
* @throws Error if the image could not be processed for an unknown reason.
*/
export declare function removeBackground(imageURI: string): Promise<string>;
//# sourceMappingURL=index.d.ts.map