Removes the background from the specified image file.
Returns a LocalRembgResultModel representing the result of the operation.
imagePath Throws an error if the provided image path '.png', '.jpg', '.jpeg', '.heic' is invalid or unsupported.
imageUint8List (Requires iOS platform).
cropTheImage Specifies whether to crop the segmented image after removing the background.
If set to true, the segmented image will be cropped to remove any transparent or empty areas.
If set to false, the segmented image will be returned without any cropping.