{"_id":"@capacitor-mlkit/subject-segmentation","_rev":"10-9ab7ba0f4b09a9900dfaae926dc0eafc","name":"@capacitor-mlkit/subject-segmentation","dist-tags":{"dev":"7.0.0-dev.1765885034","latest":"8.2.1"},"versions":{"7.2.1":{"name":"@capacitor-mlkit/subject-segmentation","version":"7.2.1","keywords":["capacitor","plugin","native"],"author":{"name":"Robin Genz","email":"mail@robingenz.dev"},"license":"Apache-2.0","_id":"@capacitor-mlkit/subject-segmentation@7.2.1","maintainers":[{"name":"robingenz","email":"mail@robingenz.dev"}],"homepage":"https://capawesome.io/plugins/mlkit/subject-segmentation/","bugs":{"url":"https://github.com/capawesome-team/capacitor-mlkit/issues"},"dist":{"shasum":"313b9dafc07ee7be6ce9c2ebf34c113fe8cfa995","tarball":"https://registry.npmjs.org/@capacitor-mlkit/subject-segmentation/-/subject-segmentation-7.2.1.tgz","fileCount":33,"integrity":"sha512-yVz+8qBCO6hM+u5oVohdoLnpKV1OYfpdffRuNofNFW1KJB1q9MevQWEIB5E2im1dVpsm6H5KVd50A9dEFRuIWA==","signatures":[{"sig":"MEQCIBB0WTg1UZsYYGEZsnpsCxCHsXIXifZlhXDdP+NGfXtzAiAnvzqxYiaGRg/WI7LF0oRNOd/+qe4ayc914dKLuVWfSg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":86968},"main":"dist/plugin.cjs.js","types":"dist/esm/index.d.ts","unpkg":"dist/plugin.js","module":"dist/esm/index.js","funding":[{"url":"https://github.com/sponsors/capawesome-team/","type":"github"},{"url":"https://opencollective.com/capawesome","type":"opencollective"}],"gitHead":"c28b7ff58f78389b6a2b5c620487908938ab1efa","scripts":{"fmt":"npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format","lint":"npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint","build":"npm run clean && npm run docgen && tsc && rollup -c rollup.config.mjs","clean":"rimraf ./dist","watch":"tsc --watch","docgen":"docgen --api SubjectSegmentationPlugin --output-readme README.md --output-json dist/docs.json","eslint":"eslint . --ext ts","verify":"npm run verify:ios && npm run verify:android && npm run verify:web","prettier":"prettier \"**/*.{css,html,ts,js,java}\"","swiftlint":"node-swiftlint","verify:ios":"cd ios && pod install && xcodebuild -workspace Plugin.xcworkspace -scheme Plugin -destination generic/platform=iOS && cd ..","verify:web":"npm run build","prepublishOnly":"npm run build","verify:android":"cd android && ./gradlew clean build test && cd ..","ios:pod:install":"cd ios && pod install --repo-update && cd .."},"_npmUser":{"name":"robingenz","email":"mail@robingenz.dev"},"capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"swiftlint":"@ionic/swiftlint-config","repository":{"url":"git+https://github.com/capawesome-team/capacitor-mlkit.git","type":"git"},"_npmVersion":"10.8.2","description":"Capacitor plugin for ML Kit Subject Segmentation.","directories":{},"_nodeVersion":"20.19.0","eslintConfig":{"extends":"@ionic/eslint-config/recommended"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"8.57.0","rimraf":"6.0.1","rollup":"4.30.1","prettier":"3.4.2","swiftlint":"2.0.0","typescript":"4.1.5","@capacitor/cli":"7.0.0","@capacitor/ios":"7.0.0","@capacitor/core":"7.0.0","@capacitor/docgen":"0.3.0","@capacitor/android":"7.0.0","@ionic/eslint-config":"0.4.0","prettier-plugin-java":"2.6.7","@ionic/swiftlint-config":"2.0.0"},"peerDependencies":{"@capacitor/core":">=7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/subject-segmentation_7.2.1_1744013088519_0.30750622406146455","host":"s3://npm-registry-packages-npm-production"}},"7.3.0":{"name":"@capacitor-mlkit/subject-segmentation","version":"7.3.0","keywords":["capacitor","plugin","native"],"author":{"name":"Robin Genz","email":"mail@robingenz.dev"},"license":"Apache-2.0","_id":"@capacitor-mlkit/subject-segmentation@7.3.0","maintainers":[{"name":"robingenz","email":"mail@robingenz.dev"}],"homepage":"https://capawesome.io/plugins/mlkit/subject-segmentation/","bugs":{"url":"https://github.com/capawesome-team/capacitor-mlkit/issues"},"dist":{"shasum":"8cc582b7733b7898a6a86314064d724eedfe98e5","tarball":"https://registry.npmjs.org/@capacitor-mlkit/subject-segmentation/-/subject-segmentation-7.3.0.tgz","fileCount":33,"integrity":"sha512-+NkSSxnOzdyYwzuXQgqyRFcIZUyvAGg4T3NJNuv6opJXjn/xW+X3pa1vx/OSuP0ZmcVdv5tO4WG4x3/J4ZJuZQ==","signatures":[{"sig":"MEUCIG2QNb70k7dQfxCjh8a10GObuwD10INuxHDp9oqvuztUAiEAzJTQFvkxJxCSjRq4+6nxRFVys0yIkcz2CmiTK6bPPlE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":88075},"main":"dist/plugin.cjs.js","types":"dist/esm/index.d.ts","unpkg":"dist/plugin.js","module":"dist/esm/index.js","funding":[{"url":"https://github.com/sponsors/capawesome-team/","type":"github"},{"url":"https://opencollective.com/capawesome","type":"opencollective"}],"gitHead":"05a33e51a33ab51b3f8106fbb544f3b6bb0024a5","scripts":{"fmt":"npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format","lint":"npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint","build":"npm run clean && npm run docgen && tsc && rollup -c rollup.config.mjs","clean":"rimraf ./dist","watch":"tsc --watch","docgen":"docgen --api SubjectSegmentationPlugin --output-readme README.md --output-json dist/docs.json","eslint":"eslint . --ext ts","verify":"npm run verify:ios && npm run verify:android && npm run verify:web","prettier":"prettier \"**/*.{css,html,ts,js,java}\"","swiftlint":"node-swiftlint","verify:ios":"cd ios && pod install && xcodebuild -workspace Plugin.xcworkspace -scheme Plugin -destination generic/platform=iOS && cd ..","verify:web":"npm run build","prepublishOnly":"npm run build","verify:android":"cd android && ./gradlew clean build test && cd ..","ios:pod:install":"cd ios && pod install --repo-update && cd .."},"_npmUser":{"name":"robingenz","email":"mail@robingenz.dev"},"capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"swiftlint":"@ionic/swiftlint-config","repository":{"url":"git+https://github.com/capawesome-team/capacitor-mlkit.git","type":"git"},"_npmVersion":"10.8.2","description":"Capacitor plugin for ML Kit Subject Segmentation.","directories":{},"_nodeVersion":"20.19.4","eslintConfig":{"extends":"@ionic/eslint-config/recommended"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"8.57.0","rimraf":"6.0.1","rollup":"4.30.1","prettier":"3.4.2","swiftlint":"2.0.0","typescript":"4.1.5","@capacitor/cli":"7.0.0","@capacitor/ios":"7.0.0","@capacitor/core":"7.0.0","@capacitor/docgen":"0.3.0","@capacitor/android":"7.0.0","@ionic/eslint-config":"0.4.0","prettier-plugin-java":"2.6.7","@ionic/swiftlint-config":"2.0.0"},"peerDependencies":{"@capacitor/core":">=7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/subject-segmentation_7.3.0_1753896141191_0.7185761225531115","host":"s3://npm-registry-packages-npm-production"}},"7.4.0":{"name":"@capacitor-mlkit/subject-segmentation","version":"7.4.0","keywords":["capacitor","plugin","native"],"author":{"name":"Robin Genz","email":"mail@robingenz.dev"},"license":"Apache-2.0","_id":"@capacitor-mlkit/subject-segmentation@7.4.0","maintainers":[{"name":"robingenz","email":"mail@robingenz.dev"}],"homepage":"https://capawesome.io/plugins/mlkit/subject-segmentation/","bugs":{"url":"https://github.com/capawesome-team/capacitor-mlkit/issues"},"dist":{"shasum":"9cfcb9433f207cfc08aa9c4c5b3f48a7ec139f46","tarball":"https://registry.npmjs.org/@capacitor-mlkit/subject-segmentation/-/subject-segmentation-7.4.0.tgz","fileCount":33,"integrity":"sha512-y6x2E1VvKcuDxvQwXknnDhyIkf0R2ajzns+DkUCzzwKDc9Ks6Rq30mc5F1jSFZWI0YsAhvzRvr4JM2iyHyx8MA==","signatures":[{"sig":"MEYCIQDyf02JYa51KO1iRG0WhsqgIJDIArgswEK9PIqallGZBAIhAKFzWuKUFV9/b4iuEhNPSrg/tLMUDKJxmpLN5l5clAd+","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":88075},"main":"dist/plugin.cjs.js","types":"dist/esm/index.d.ts","unpkg":"dist/plugin.js","module":"dist/esm/index.js","funding":[{"url":"https://github.com/sponsors/capawesome-team/","type":"github"},{"url":"https://opencollective.com/capawesome","type":"opencollective"}],"gitHead":"6a90cb22dc5282425e190f357ed4e53a56f44d85","scripts":{"fmt":"npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format","lint":"npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint","build":"npm run clean && npm run docgen && tsc && rollup -c rollup.config.mjs","clean":"rimraf ./dist","watch":"tsc --watch","docgen":"docgen --api SubjectSegmentationPlugin --output-readme README.md --output-json dist/docs.json","eslint":"eslint . --ext ts","verify":"npm run verify:ios && npm run verify:android && npm run verify:web","prettier":"prettier \"**/*.{css,html,ts,js,java}\"","swiftlint":"node-swiftlint","verify:ios":"cd ios && pod install && xcodebuild -workspace Plugin.xcworkspace -scheme Plugin -destination generic/platform=iOS && cd ..","verify:web":"npm run build","prepublishOnly":"npm run build","verify:android":"cd android && ./gradlew clean build test && cd ..","ios:pod:install":"cd ios && pod install --repo-update && cd .."},"_npmUser":{"name":"robingenz","email":"mail@robingenz.dev"},"capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"swiftlint":"@ionic/swiftlint-config","repository":{"url":"git+https://github.com/capawesome-team/capacitor-mlkit.git","type":"git"},"_npmVersion":"10.8.2","description":"Capacitor plugin for ML Kit Subject Segmentation.","directories":{},"_nodeVersion":"20.19.5","eslintConfig":{"extends":"@ionic/eslint-config/recommended"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"8.57.0","rimraf":"6.0.1","rollup":"4.30.1","prettier":"3.4.2","swiftlint":"2.0.0","typescript":"4.1.5","@capacitor/cli":"7.0.0","@capacitor/ios":"7.0.0","@capacitor/core":"7.0.0","@capacitor/docgen":"0.3.0","@capacitor/android":"7.0.0","@ionic/eslint-config":"0.4.0","prettier-plugin-java":"2.6.7","@ionic/swiftlint-config":"2.0.0"},"peerDependencies":{"@capacitor/core":">=7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/subject-segmentation_7.4.0_1763839685430_0.5363553510014092","host":"s3://npm-registry-packages-npm-production"}},"7.5.0":{"name":"@capacitor-mlkit/subject-segmentation","version":"7.5.0","keywords":["capacitor","plugin","native"],"author":{"name":"Robin Genz","email":"mail@robingenz.dev"},"license":"Apache-2.0","_id":"@capacitor-mlkit/subject-segmentation@7.5.0","maintainers":[{"name":"robingenz","email":"mail@robingenz.dev"}],"homepage":"https://capawesome.io/plugins/mlkit/subject-segmentation/","bugs":{"url":"https://github.com/capawesome-team/capacitor-mlkit/issues"},"dist":{"shasum":"f8c6be90d2ebda41aedaacb7ff7a1f34760c5f56","tarball":"https://registry.npmjs.org/@capacitor-mlkit/subject-segmentation/-/subject-segmentation-7.5.0.tgz","fileCount":33,"integrity":"sha512-fnUSJlBCv16Oz0kOzpVqgKeTOleBVQEZt5VvUnxDbizJlFDj0+vcd8/eoHuMQi6KCKyLoOnqdevDaCDZpLq/xQ==","signatures":[{"sig":"MEYCIQC1HtsFOJY6w0RfpDZwhh5yFjC2RLJWSJXblr4ZR5nW/wIhAMrapX8qDCwMoHfcE8y5aLdjfUbggF/f+hprwEq9IwU5","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@capacitor-mlkit%2fsubject-segmentation@7.5.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":88075},"main":"dist/plugin.cjs.js","types":"dist/esm/index.d.ts","unpkg":"dist/plugin.js","module":"dist/esm/index.js","funding":[{"url":"https://github.com/sponsors/capawesome-team/","type":"github"},{"url":"https://opencollective.com/capawesome","type":"opencollective"}],"gitHead":"2620a86d94464692a69af0266c0921197df03aed","scripts":{"fmt":"npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format","lint":"npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint","build":"npm run clean && npm run docgen && tsc && rollup -c rollup.config.mjs","clean":"rimraf ./dist","watch":"tsc --watch","docgen":"docgen --api SubjectSegmentationPlugin --output-readme README.md --output-json dist/docs.json","eslint":"eslint . --ext ts","verify":"npm run verify:ios && npm run verify:android && npm run verify:web","prettier":"prettier \"**/*.{css,html,ts,js,java}\"","swiftlint":"node-swiftlint","verify:ios":"cd ios && pod install && xcodebuild -workspace Plugin.xcworkspace -scheme Plugin -destination generic/platform=iOS && cd ..","verify:web":"npm run build","prepublishOnly":"npm run build","verify:android":"cd android && ./gradlew clean build test && cd ..","ios:pod:install":"cd ios && pod install --repo-update && cd .."},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:0c11db28-b30c-43a7-8fbe-9c3caf2cda30"}},"capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"swiftlint":"@ionic/swiftlint-config","repository":{"url":"git+https://github.com/capawesome-team/capacitor-mlkit.git","type":"git"},"_npmVersion":"11.7.0","description":"Capacitor plugin for ML Kit Subject Segmentation.","directories":{},"_nodeVersion":"22.21.1","eslintConfig":{"extends":"@ionic/eslint-config/recommended"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"8.57.0","rimraf":"6.0.1","rollup":"4.30.1","prettier":"3.4.2","swiftlint":"2.0.0","typescript":"4.1.5","@capacitor/cli":"7.0.0","@capacitor/ios":"7.0.0","@capacitor/core":"7.0.0","@capacitor/docgen":"0.3.0","@capacitor/android":"7.0.0","@ionic/eslint-config":"0.4.0","prettier-plugin-java":"2.6.7","@ionic/swiftlint-config":"2.0.0"},"peerDependencies":{"@capacitor/core":">=7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/subject-segmentation_7.5.0_1765705299608_0.1815272183222798","host":"s3://npm-registry-packages-npm-production"}},"7.0.0-dev.1765885034":{"name":"@capacitor-mlkit/subject-segmentation","version":"7.0.0-dev.1765885034","keywords":["capacitor","plugin","native"],"author":{"name":"Robin Genz","email":"mail@robingenz.dev"},"license":"Apache-2.0","_id":"@capacitor-mlkit/subject-segmentation@7.0.0-dev.1765885034","maintainers":[{"name":"robingenz","email":"mail@robingenz.dev"}],"homepage":"https://capawesome.io/plugins/mlkit/subject-segmentation/","bugs":{"url":"https://github.com/capawesome-team/capacitor-mlkit/issues"},"dist":{"shasum":"95280a756099b4a249f5e26cd3f5361574afd008","tarball":"https://registry.npmjs.org/@capacitor-mlkit/subject-segmentation/-/subject-segmentation-7.0.0-dev.1765885034.tgz","fileCount":33,"integrity":"sha512-IqAj1qANEJ+aE8TUHjLZPfghL4YWCV5oVGMxgv/7Dn300qoU+cWqll5FNOQ2BcoRq+ah/JMF/KaONaEkGu5oHg==","signatures":[{"sig":"MEUCIQCJLWwOSiELgUCDjRQOJqWx/IZB+Fz+X1KoYIpiUGnH6AIgXzNy9Se5kpmBOWstEbH8nRhnNDdQeL3SkgJ/g8vOhI4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":88612},"main":"dist/plugin.cjs.js","types":"dist/esm/index.d.ts","unpkg":"dist/plugin.js","module":"dist/esm/index.js","funding":[{"url":"https://github.com/sponsors/capawesome-team/","type":"github"},{"url":"https://opencollective.com/capawesome","type":"opencollective"}],"gitHead":"7c34e5f74f0339aa0b1a210f0060ccb31d0720bd","scripts":{"fmt":"npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format","lint":"npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint","build":"npm run clean && npm run docgen && tsc && rollup -c rollup.config.mjs","clean":"rimraf ./dist","watch":"tsc --watch","docgen":"docgen --api SubjectSegmentationPlugin --output-readme README.md --output-json dist/docs.json","eslint":"eslint . --ext ts","verify":"npm run verify:ios && npm run verify:android && npm run verify:web","prettier":"prettier \"**/*.{css,html,ts,js,java}\"","swiftlint":"node-swiftlint","verify:ios":"cd ios && pod install && xcodebuild -workspace Plugin.xcworkspace -scheme Plugin -destination generic/platform=iOS && cd ..","verify:web":"npm run build","prepublishOnly":"npm run build","verify:android":"cd android && ./gradlew clean build test && cd ..","ios:pod:install":"cd ios && pod install --repo-update && cd .."},"_npmUser":{"name":"robingenz","email":"mail@robingenz.dev"},"capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"swiftlint":"@ionic/swiftlint-config","repository":{"url":"git+https://github.com/capawesome-team/capacitor-mlkit.git","type":"git"},"_npmVersion":"11.5.2","description":"Capacitor plugin for ML Kit Subject Segmentation.","directories":{},"_nodeVersion":"20.19.4","eslintConfig":{"extends":"@ionic/eslint-config/recommended"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"eslint":"8.57.0","rimraf":"6.1.2","rollup":"4.53.3","prettier":"3.4.2","swiftlint":"2.0.0","typescript":"5.9.3","@capacitor/cli":"8.0.0","@capacitor/ios":"8.0.0","@capacitor/core":"8.0.0","@capacitor/docgen":"0.3.1","@capacitor/android":"8.0.0","@ionic/eslint-config":"0.4.0","prettier-plugin-java":"2.6.7","@ionic/swiftlint-config":"2.0.0"},"peerDependencies":{"@capacitor/core":">=8.0.0"},"_npmOperationalInternal":{"tmp":"tmp/subject-segmentation_7.0.0-dev.1765885034_1765885355386_0.05875249418452788","host":"s3://npm-registry-packages-npm-production"}},"8.0.0":{"name":"@capacitor-mlkit/subject-segmentation","version":"8.0.0","keywords":["capacitor","plugin","native"],"author":{"name":"Robin Genz","email":"mail@robingenz.dev"},"license":"Apache-2.0","_id":"@capacitor-mlkit/subject-segmentation@8.0.0","maintainers":[{"name":"robingenz","email":"mail@robingenz.dev"}],"homepage":"https://capawesome.io/plugins/mlkit/subject-segmentation/","bugs":{"url":"https://github.com/capawesome-team/capacitor-mlkit/issues"},"dist":{"shasum":"806a660be26a8b4e81f719f221dbd035f696ea32","tarball":"https://registry.npmjs.org/@capacitor-mlkit/subject-segmentation/-/subject-segmentation-8.0.0.tgz","fileCount":33,"integrity":"sha512-fmlGU6pzsEeJw7NyeQj29oqPWNyoVVz5QjrXVhANKPnzIUYRnA7Sq03svxnol+4xKoTTBaaWyW8Y4XjswSqhtQ==","signatures":[{"sig":"MEQCIGM6chr3eCQhxuV+rgUtHAkevkF/GRmfX5WswO0kgP9RAiB8tk8OknxY6PPMjdDps4EaoIIEHP8RHxjQc6S7gJBfQQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@capacitor-mlkit%2fsubject-segmentation@8.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":88597},"main":"dist/plugin.cjs.js","types":"dist/esm/index.d.ts","unpkg":"dist/plugin.js","module":"dist/esm/index.js","funding":[{"url":"https://github.com/sponsors/capawesome-team/","type":"github"},{"url":"https://opencollective.com/capawesome","type":"opencollective"}],"gitHead":"b994ea30d54a122003fbd2a102a6f3afc34920e9","scripts":{"fmt":"npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format","lint":"npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint","build":"npm run clean && npm run docgen && tsc && rollup -c rollup.config.mjs","clean":"rimraf ./dist","watch":"tsc --watch","docgen":"docgen --api SubjectSegmentationPlugin --output-readme README.md --output-json dist/docs.json","eslint":"eslint . --ext ts","verify":"npm run verify:ios && npm run verify:android && npm run verify:web","prettier":"prettier \"**/*.{css,html,ts,js,java}\"","swiftlint":"node-swiftlint","verify:ios":"cd ios && pod install && xcodebuild -workspace Plugin.xcworkspace -scheme Plugin -destination generic/platform=iOS && cd ..","verify:web":"npm run build","prepublishOnly":"npm run build","verify:android":"cd android && ./gradlew clean build test && cd ..","ios:pod:install":"cd ios && pod install --repo-update && cd .."},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:0c11db28-b30c-43a7-8fbe-9c3caf2cda30"}},"capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"swiftlint":"@ionic/swiftlint-config","repository":{"url":"git+https://github.com/capawesome-team/capacitor-mlkit.git","type":"git"},"_npmVersion":"11.7.0","description":"Capacitor plugin for ML Kit Subject Segmentation.","directories":{},"_nodeVersion":"22.21.1","eslintConfig":{"extends":"@ionic/eslint-config/recommended"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"8.57.0","rimraf":"6.1.2","rollup":"4.53.3","prettier":"3.4.2","swiftlint":"2.0.0","typescript":"5.9.3","@capacitor/cli":"8.0.0","@capacitor/ios":"8.0.0","@capacitor/core":"8.0.0","@capacitor/docgen":"0.3.1","@capacitor/android":"8.0.0","@ionic/eslint-config":"0.4.0","prettier-plugin-java":"2.6.7","@ionic/swiftlint-config":"2.0.0"},"peerDependencies":{"@capacitor/core":">=8.0.0"},"_npmOperationalInternal":{"tmp":"tmp/subject-segmentation_8.0.0_1765973631281_0.9260595501463562","host":"s3://npm-registry-packages-npm-production"}},"8.0.1":{"name":"@capacitor-mlkit/subject-segmentation","version":"8.0.1","keywords":["capacitor","plugin","native"],"author":{"name":"Robin Genz","email":"mail@robingenz.dev"},"license":"Apache-2.0","_id":"@capacitor-mlkit/subject-segmentation@8.0.1","maintainers":[{"name":"robingenz","email":"mail@robingenz.dev"}],"homepage":"https://capawesome.io/plugins/mlkit/subject-segmentation/","bugs":{"url":"https://github.com/capawesome-team/capacitor-mlkit/issues"},"dist":{"shasum":"1c64053ab77883bcaa7b902fdfa9cc7fbe1df28e","tarball":"https://registry.npmjs.org/@capacitor-mlkit/subject-segmentation/-/subject-segmentation-8.0.1.tgz","fileCount":33,"integrity":"sha512-gH37G89gERPD7uH4anMzFw9of+FWOjOpAEvgOs5e3IImsRll19KoC6EQWA2TYVzJ/nZVwkm83siE3muJewaBnw==","signatures":[{"sig":"MEUCIDckPzbfKJ7kICUhnKiduRngGkcyYYehA7TYqCJzZRuPAiEA7xX/KQHwu1F32shLr/EgOdB1Ik+1Wyg5JeO3CXNo/6Y=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@capacitor-mlkit%2fsubject-segmentation@8.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":88609},"main":"dist/plugin.cjs.js","types":"dist/esm/index.d.ts","unpkg":"dist/plugin.js","module":"dist/esm/index.js","funding":[{"url":"https://github.com/sponsors/capawesome-team/","type":"github"},{"url":"https://opencollective.com/capawesome","type":"opencollective"}],"gitHead":"a3b5a26fe724d41c936a762c5279e4b4bc4cf81d","scripts":{"fmt":"npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format","lint":"npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint","build":"npm run clean && npm run docgen && tsc && rollup -c rollup.config.mjs","clean":"rimraf ./dist","watch":"tsc --watch","docgen":"docgen --api SubjectSegmentationPlugin --output-readme README.md --output-json dist/docs.json","eslint":"eslint . --ext ts","verify":"npm run verify:ios && npm run verify:android && npm run verify:web","prettier":"prettier \"**/*.{css,html,ts,js,java}\"","swiftlint":"node-swiftlint","verify:ios":"cd ios && pod install && xcodebuild -workspace Plugin.xcworkspace -scheme Plugin -destination generic/platform=iOS && cd ..","verify:web":"npm run build","prepublishOnly":"npm run build","verify:android":"cd android && ./gradlew clean build test && cd ..","ios:pod:install":"cd ios && pod install --repo-update && cd .."},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:0c11db28-b30c-43a7-8fbe-9c3caf2cda30"}},"capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"swiftlint":"@ionic/swiftlint-config","repository":{"url":"git+https://github.com/capawesome-team/capacitor-mlkit.git","type":"git"},"_npmVersion":"11.10.0","description":"Capacitor plugin for ML Kit Subject Segmentation.","directories":{},"_nodeVersion":"22.22.0","eslintConfig":{"extends":"@ionic/eslint-config/recommended"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"8.57.0","rimraf":"6.1.2","rollup":"4.53.3","prettier":"3.4.2","swiftlint":"2.0.0","typescript":"5.9.3","@capacitor/cli":"8.0.0","@capacitor/ios":"8.0.0","@capacitor/core":"8.0.0","@capacitor/docgen":"0.3.1","@capacitor/android":"8.0.0","@ionic/eslint-config":"0.4.0","prettier-plugin-java":"2.6.7","@ionic/swiftlint-config":"2.0.0"},"peerDependencies":{"@capacitor/core":">=8.0.0"},"_npmOperationalInternal":{"tmp":"tmp/subject-segmentation_8.0.1_1771485288979_0.7875410281770219","host":"s3://npm-registry-packages-npm-production"}},"8.1.0":{"name":"@capacitor-mlkit/subject-segmentation","version":"8.1.0","keywords":["capacitor","plugin","native"],"author":{"name":"Robin Genz","email":"mail@robingenz.dev"},"license":"Apache-2.0","_id":"@capacitor-mlkit/subject-segmentation@8.1.0","maintainers":[{"name":"robingenz","email":"mail@robingenz.dev"}],"homepage":"https://capawesome.io/plugins/mlkit/subject-segmentation/","bugs":{"url":"https://github.com/capawesome-team/capacitor-mlkit/issues"},"dist":{"shasum":"ff501fa3954000d63be607d138bbbab485247505","tarball":"https://registry.npmjs.org/@capacitor-mlkit/subject-segmentation/-/subject-segmentation-8.1.0.tgz","fileCount":33,"integrity":"sha512-oXNTwpcwBkxP1xGeWxPV62vZ2UcYorLSv/w9Q6HKBqVWqEyDFyy8U9y0UsHyuDNmYpJqGvA6TtfwNXhGQ/Emog==","signatures":[{"sig":"MEUCIQDwyIGOmR7fzAMdBGiBOQAmzUznvzIFGsuTy66UFWZEHgIgCbrQG7FgkD2OlVv5VNC+pR0J8VX7VhjJZoiv3I862D0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@capacitor-mlkit%2fsubject-segmentation@8.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":89309},"main":"dist/plugin.cjs.js","types":"dist/esm/index.d.ts","unpkg":"dist/plugin.js","module":"dist/esm/index.js","funding":[{"url":"https://github.com/sponsors/capawesome-team/","type":"github"},{"url":"https://opencollective.com/capawesome","type":"opencollective"}],"gitHead":"e4e7e7169de6c2d2a9aafa5cf3b8e0fb3582565e","scripts":{"fmt":"npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format","lint":"npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint","build":"npm run clean && npm run docgen && tsc && rollup -c rollup.config.mjs","clean":"rimraf ./dist","watch":"tsc --watch","docgen":"docgen --api SubjectSegmentationPlugin --output-readme README.md --output-json dist/docs.json","eslint":"eslint . --ext ts","verify":"npm run verify:ios && npm run verify:android && npm run verify:web","prettier":"prettier \"**/*.{css,html,ts,js,java}\"","swiftlint":"node-swiftlint","verify:ios":"cd ios && pod install && xcodebuild -workspace Plugin.xcworkspace -scheme Plugin -destination generic/platform=iOS && cd ..","verify:web":"npm run build","prepublishOnly":"npm run build","verify:android":"cd android && ./gradlew clean build test && cd ..","ios:pod:install":"cd ios && pod install --repo-update && cd .."},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:0c11db28-b30c-43a7-8fbe-9c3caf2cda30"}},"capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"repository":{"url":"git+https://github.com/capawesome-team/capacitor-mlkit.git","type":"git"},"_npmVersion":"11.11.0","description":"Capacitor plugin for ML Kit Subject Segmentation.","directories":{},"_nodeVersion":"24.14.1","eslintConfig":{"extends":"@ionic/eslint-config/recommended"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"8.57.0","rimraf":"6.1.2","rollup":"4.53.3","prettier":"3.4.2","swiftlint":"2.0.0","typescript":"5.9.3","@capacitor/cli":"8.0.0","@capacitor/ios":"8.0.0","@capacitor/core":"8.0.0","@capacitor/docgen":"0.3.1","@capacitor/android":"8.0.0","@ionic/eslint-config":"0.4.0","prettier-plugin-java":"2.6.7"},"peerDependencies":{"@capacitor/core":">=8.0.0"},"_npmOperationalInternal":{"tmp":"tmp/subject-segmentation_8.1.0_1778160708816_0.9907248493299827","host":"s3://npm-registry-packages-npm-production"}},"8.1.1":{"name":"@capacitor-mlkit/subject-segmentation","version":"8.1.1","keywords":["capacitor","plugin","native","capacitor-plugin","mlkit","ml kit","subject segmentation","image segmentation","object segmentation","background removal","photo cutout","remove background"],"author":{"name":"Robin Genz","email":"mail@robingenz.dev"},"license":"Apache-2.0","_id":"@capacitor-mlkit/subject-segmentation@8.1.1","maintainers":[{"name":"robingenz","email":"mail@robingenz.dev"}],"homepage":"https://capawesome.io/docs/sdks/capacitor/mlkit/subject-segmentation/","bugs":{"url":"https://github.com/capawesome-team/capacitor-mlkit/issues"},"dist":{"shasum":"bfb999eb29643390fe0f6e308ea22074496f899d","tarball":"https://registry.npmjs.org/@capacitor-mlkit/subject-segmentation/-/subject-segmentation-8.1.1.tgz","fileCount":33,"integrity":"sha512-8EOg9//b7wuYFkPgCxYJ7uax9B9nUyvaedOBzQGkDh6+ekTIX6GnxDtu36AuXRu5pIZ7kt9xvZKIabQ63ow3oA==","signatures":[{"sig":"MEQCICrlv8fG0Qby0NLosUeXQ7TbFE9Vegiaj8L7NNBRIfFfAiB8r4+ZPGZsv4rjGwOOOFIL2o1F0lpsEWEgtIx3NoxLjg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@capacitor-mlkit%2fsubject-segmentation@8.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":91959},"main":"dist/plugin.cjs.js","types":"dist/esm/index.d.ts","unpkg":"dist/plugin.js","module":"dist/esm/index.js","funding":[{"url":"https://github.com/sponsors/capawesome-team/","type":"github"},{"url":"https://opencollective.com/capawesome","type":"opencollective"}],"gitHead":"4a514f5c394d3ef45298f4393bade0ee56b77765","scripts":{"fmt":"npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format","lint":"npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint","build":"npm run clean && npm run docgen && tsc && rollup -c rollup.config.mjs","clean":"rimraf ./dist","watch":"tsc --watch","docgen":"docgen --api SubjectSegmentationPlugin --output-readme README.md --output-json dist/docs.json","eslint":"eslint . --ext ts","verify":"npm run verify:ios && npm run verify:android && npm run verify:web","prettier":"prettier \"**/*.{css,html,ts,js,java}\"","swiftlint":"node-swiftlint","verify:ios":"cd ios && pod install && xcodebuild -workspace Plugin.xcworkspace -scheme Plugin -destination generic/platform=iOS && cd ..","verify:web":"npm run build","prepublishOnly":"npm run build","verify:android":"cd android && ./gradlew clean build test && cd ..","ios:pod:install":"cd ios && pod install --repo-update && cd .."},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:0c11db28-b30c-43a7-8fbe-9c3caf2cda30"}},"capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"repository":{"url":"git+https://github.com/capawesome-team/capacitor-mlkit.git","type":"git"},"_npmVersion":"11.17.0","description":"Capacitor plugin for ML Kit Subject Segmentation on Android.","directories":{},"_nodeVersion":"24.19.0","eslintConfig":{"extends":"@ionic/eslint-config/recommended"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"8.57.0","rimraf":"6.1.2","rollup":"4.62.3","swiftlint":"2.0.0","typescript":"5.9.3","@capacitor/cli":"8.5.0","@capacitor/ios":"8.0.0","@capacitor/core":"8.0.0","@capacitor/docgen":"0.3.1","@capacitor/android":"8.0.0","@ionic/eslint-config":"0.4.0","prettier-plugin-java":"2.9.7"},"peerDependencies":{"@capacitor/core":">=8.0.0"},"_npmOperationalInternal":{"tmp":"tmp/subject-segmentation_8.1.1_1788159157161_0.4688374219693314","host":"s3://npm-registry-packages-npm-production"}},"8.2.1":{"_id":"@capacitor-mlkit/subject-segmentation@8.2.1","bugs":{"url":"https://github.com/capawesome-team/capacitor-mlkit/issues"},"dist":{"shasum":"e4a4d8688023ecf6a5591a34ce206971b55e4b94","tarball":"https://registry.npmjs.org/@capacitor-mlkit/subject-segmentation/-/subject-segmentation-8.2.1.tgz","fileCount":33,"integrity":"sha512-NirA0+jjcbDbTiRxblsaqXGAgMKIFgzWKYceN8ZmmW99cqmpxQJ6ncHBf/lcKA+D/mnN5MgcKZhdsnTI2y+qHQ==","signatures":[{"sig":"MEQCIHWgeFXTV6jgMqM2AyaD/nuca0rK0n+8+5E23V7rhba2AiAEagvfrR8HZif3EP/uldPsBoipqbEUduwosF0XsXGmCA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIERE5tDUOiaP+T+zWZtsWfuG0FX0bsGChsq2DLzWSiNAAiEAjakxjySUg/Ki5vLFTv960zV6AootaW5p9DHZ4bCR88Q="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@capacitor-mlkit%2fsubject-segmentation@8.2.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":91959},"main":"dist/plugin.cjs.js","name":"@capacitor-mlkit/subject-segmentation","types":"dist/esm/index.d.ts","unpkg":"dist/plugin.js","author":{"name":"Robin Genz","email":"mail@robingenz.dev"},"module":"dist/esm/index.js","funding":[{"url":"https://github.com/sponsors/capawesome-team/","type":"github"},{"url":"https://opencollective.com/capawesome","type":"opencollective"}],"gitHead":"0fcd1977cfb70d9c39d618680045cf01434aebf2","license":"Apache-2.0","scripts":{"fmt":"npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format","lint":"npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint","build":"npm run clean && npm run docgen && tsc && rollup -c rollup.config.mjs","clean":"rimraf ./dist","watch":"tsc --watch","docgen":"docgen --api SubjectSegmentationPlugin --output-readme README.md --output-json dist/docs.json","eslint":"eslint . --ext ts","verify":"npm run verify:ios && npm run verify:android && npm run verify:web","prettier":"prettier \"**/*.{css,html,ts,js,java}\"","swiftlint":"node-swiftlint","verify:ios":"cd ios && pod install && xcodebuild -workspace Plugin.xcworkspace -scheme Plugin -destination generic/platform=iOS && cd ..","verify:web":"npm run build","prepublishOnly":"npm run build","verify:android":"cd android && ./gradlew clean build test && cd ..","ios:pod:install":"cd ios && pod install --repo-update && cd .."},"version":"8.2.1","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:0c11db28-b30c-43a7-8fbe-9c3caf2cda30"}},"homepage":"https://capawesome.io/docs/sdks/capacitor/mlkit/subject-segmentation/","keywords":["capacitor","plugin","native","capacitor-plugin","mlkit","ml kit","subject segmentation","image segmentation","object segmentation","background removal","photo cutout","remove background"],"capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"repository":{"url":"git+https://github.com/capawesome-team/capacitor-mlkit.git","type":"git"},"_npmVersion":"11.19.0","description":"Capacitor plugin for ML Kit Subject Segmentation on Android.","directories":{},"maintainers":[{"name":"robingenz","email":"mail@robingenz.dev"}],"_nodeVersion":"24.20.0","eslintConfig":{"extends":"@ionic/eslint-config/recommended"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"8.57.0","rimraf":"6.1.2","rollup":"4.62.3","swiftlint":"2.0.0","typescript":"5.9.3","@capacitor/cli":"8.5.0","@capacitor/ios":"8.0.0","@capacitor/core":"8.0.0","@capacitor/docgen":"0.3.1","@capacitor/android":"8.0.0","@ionic/eslint-config":"0.4.0","prettier-plugin-java":"2.9.7"},"peerDependencies":{"@capacitor/core":">=8.0.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/subject-segmentation_8.2.1_1789015979175_0.7146943613537289"}}},"time":{"created":"2025-04-07T08:04:48.451Z","modified":"2026-09-10T04:52:59.658Z","7.2.1":"2025-04-07T08:04:48.713Z","7.3.0":"2025-07-30T17:22:21.395Z","7.4.0":"2025-11-22T19:28:05.660Z","7.5.0":"2025-12-14T09:41:39.758Z","7.0.0-dev.1765885034":"2025-12-16T11:42:35.542Z","8.0.0":"2025-12-17T12:13:51.423Z","8.0.1":"2026-02-19T07:14:49.126Z","8.1.0":"2026-05-07T13:31:48.967Z","8.1.1":"2026-08-31T06:52:37.298Z","8.2.1":"2026-09-10T04:52:59.282Z"},"bugs":{"url":"https://github.com/capawesome-team/capacitor-mlkit/issues"},"author":{"name":"Robin Genz","email":"mail@robingenz.dev"},"license":"Apache-2.0","homepage":"https://capawesome.io/docs/sdks/capacitor/mlkit/subject-segmentation/","keywords":["capacitor","plugin","native","capacitor-plugin","mlkit","ml kit","subject segmentation","image segmentation","object segmentation","background removal","photo cutout","remove background"],"repository":{"url":"git+https://github.com/capawesome-team/capacitor-mlkit.git","type":"git"},"description":"Capacitor plugin for ML Kit Subject Segmentation on Android.","maintainers":[{"name":"robingenz","email":"mail@robingenz.dev"}],"readme":"# Capacitor ML Kit Subject Segmentation Plugin\n\nUnofficial Capacitor plugin for [ML Kit Subject Segmentation](https://developers.google.com/ml-kit/vision/subject-segmentation).[^1]\n\n<div class=\"capawesome-z29o10a\">\n  <a href=\"https://cloud.capawesome.io/\" target=\"_blank\">\n    <img alt=\"Deliver Live Updates to your Capacitor app with Capawesome Cloud\" src=\"https://cloud.capawesome.io/assets/banners/cloud-build-and-deploy-capacitor-apps.png?t=1\" />\n  </a>\n</div>\n\n## Use Cases\n\nThe Subject Segmentation plugin is typically used to separate the subject of a picture from its background, for example:\n\n- **Background removal**: Remove or replace the background of a photo, for example for product images or portraits.\n- **Photo editing**: Build editing features that combine the segmented image with new backgrounds or effects.\n- **Sticker creation**: Turn photos into cutouts or stickers that users can share in chats and posts.\n\n## Compatibility\n\n| Plugin Version | Capacitor Version | Status         |\n| -------------- | ----------------- | -------------- |\n| 8.x.x          | >=8.x.x           | Active support |\n\n## Installation\n\nYou can use our **AI-Assisted Setup** to install the plugin.\nAdd the [Capawesome Skills](https://github.com/capawesome-team/skills) to your AI tool using the following command:\n\n```bash\nnpx skills add capawesome-team/skills --skill capacitor-plugins\n```\n\nThen use the following prompt:\n\n```\nUse the `capacitor-plugins` skill from `capawesome-team/skills` to install the `@capacitor-mlkit/subject-segmentation` plugin in my project.\n```\n\nIf you prefer **Manual Setup**, install the plugin by running the following commands and follow the platform-specific instructions below:\n\n```bash\nnpm install @capacitor-mlkit/subject-segmentation\nnpx cap sync\n```\n\n### Android\n\n#### API level\n\nThis plugin requires a minimum API level of 24.\n\n#### Metadata\n\nYou need to add the following meta data **in** the `application` tag in your `AndroidManifest.xml`:\n\n```xml\n<meta-data android:name=\"com.google.mlkit.vision.DEPENDENCIES\" android:value=\"subject_segment\"/>\n<!-- To use multiple models: android:value=\"face,model2,model3\" -->\n```\n\n## Usage\n\nThe following example shows how to segment a subject from the background.\n\n### Segment a subject from the background\n\nPass the local path of an image file to `processImage(...)` to perform the segmentation. You can optionally scale the image using the `width` and `height` options and adjust the confidence threshold. The result contains the path to the segmented image file along with its width and height:\n\n```typescript\nimport { SubjectSegmentation } from '@capacitor-mlkit/subject-segmentation';\n\nconst processImage = async () => {\n  const { path } = await SubjectSegmentation.processImage({\n    path: 'path/to/image.jpg',\n    confidence: 0.7,\n  });\n  return path;\n};\n```\n\n## API\n\n<docgen-index>\n\n* [`processImage(...)`](#processimage)\n* [`isGoogleSubjectSegmentationModuleAvailable()`](#isgooglesubjectsegmentationmoduleavailable)\n* [`installGoogleSubjectSegmentationModule()`](#installgooglesubjectsegmentationmodule)\n* [`addListener('googleSubjectSegmentationModuleInstallProgress', ...)`](#addlistenergooglesubjectsegmentationmoduleinstallprogress-)\n* [`removeAllListeners()`](#removealllisteners)\n* [Interfaces](#interfaces)\n* [Enums](#enums)\n\n</docgen-index>\n\n<docgen-api>\n<!--Update the source file JSDoc comments and rerun docgen to update the docs below-->\n\n### processImage(...)\n\n```typescript\nprocessImage(options: ProcessImageOptions) => Promise<ProcessImageResult>\n```\n\nPerforms segmentation on an input image.\n\nOnly available on Android and iOS.\n\n| Param         | Type                                                                |\n| ------------- | ------------------------------------------------------------------- |\n| **`options`** | <code><a href=\"#processimageoptions\">ProcessImageOptions</a></code> |\n\n**Returns:** <code>Promise&lt;<a href=\"#processimageresult\">ProcessImageResult</a>&gt;</code>\n\n**Since:** 7.2.0\n\n--------------------\n\n\n### isGoogleSubjectSegmentationModuleAvailable()\n\n```typescript\nisGoogleSubjectSegmentationModuleAvailable() => Promise<IsGoogleSubjectSegmentationModuleAvailableResult>\n```\n\nCheck if the Google Subject Segmentation module is available.\n\nIf the Google Subject Segmentation module is not available, you can install it by using `installGoogleSubjectSegmentationModule()`.\n\nOnly available on Android.\n\n**Returns:** <code>Promise&lt;<a href=\"#isgooglesubjectsegmentationmoduleavailableresult\">IsGoogleSubjectSegmentationModuleAvailableResult</a>&gt;</code>\n\n**Since:** 7.2.0\n\n--------------------\n\n\n### installGoogleSubjectSegmentationModule()\n\n```typescript\ninstallGoogleSubjectSegmentationModule() => Promise<void>\n```\n\nInstall the Google Subject Segmentation module.\n\n**Attention**: This only starts the installation.\nThe `googleSubjectSegmentationModuleInstallProgress` event listener will\nnotify you when the installation is complete.\n\nOnly available on Android.\n\n**Since:** 7.2.0\n\n--------------------\n\n\n### addListener('googleSubjectSegmentationModuleInstallProgress', ...)\n\n```typescript\naddListener(eventName: 'googleSubjectSegmentationModuleInstallProgress', listenerFunc: (event: GoogleSubjectSegmentationModuleInstallProgressEvent) => void) => Promise<PluginListenerHandle>\n```\n\nCalled when the Google Subject Segmentation module is installed.\n\nOnly available on Android.\n\n| Param              | Type                                                                                                                                                    |\n| ------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| **`eventName`**    | <code>'googleSubjectSegmentationModuleInstallProgress'</code>                                                                                           |\n| **`listenerFunc`** | <code>(event: <a href=\"#googlesubjectsegmentationmoduleinstallprogressevent\">GoogleSubjectSegmentationModuleInstallProgressEvent</a>) =&gt; void</code> |\n\n**Returns:** <code>Promise&lt;<a href=\"#pluginlistenerhandle\">PluginListenerHandle</a>&gt;</code>\n\n**Since:** 7.2.0\n\n--------------------\n\n\n### removeAllListeners()\n\n```typescript\nremoveAllListeners() => Promise<void>\n```\n\nRemove all listeners for this plugin.\n\nOnly available on Android.\n\n**Since:** 7.2.0\n\n--------------------\n\n\n### Interfaces\n\n\n#### ProcessImageResult\n\n| Prop         | Type                | Description                           | Since |\n| ------------ | ------------------- | ------------------------------------- | ----- |\n| **`path`**   | <code>string</code> | The path to the segmented image file. | 7.2.0 |\n| **`width`**  | <code>number</code> | Returns the width of the image file.  | 7.2.0 |\n| **`height`** | <code>number</code> | Returns the height of the image file. | 7.2.0 |\n\n\n#### ProcessImageOptions\n\n| Prop             | Type                | Description                                                                               | Default          | Since |\n| ---------------- | ------------------- | ----------------------------------------------------------------------------------------- | ---------------- | ----- |\n| **`path`**       | <code>string</code> | The local path to the image file.                                                         |                  | 7.2.0 |\n| **`width`**      | <code>number</code> | Scale the image to this width. If no `height` is given, it will respect the aspect ratio. |                  | 7.2.0 |\n| **`height`**     | <code>number</code> | Scale the image to this height. If no `width` is given, it will respect the aspect ratio. |                  | 7.2.0 |\n| **`confidence`** | <code>number</code> | Sets the confidence threshold.                                                            | <code>0.9</code> | 7.2.0 |\n\n\n#### IsGoogleSubjectSegmentationModuleAvailableResult\n\n| Prop            | Type                 | Description                                                         | Since |\n| --------------- | -------------------- | ------------------------------------------------------------------- | ----- |\n| **`available`** | <code>boolean</code> | Whether or not the Google Subject Segmentation module is available. | 7.2.0 |\n\n\n#### PluginListenerHandle\n\n| Prop         | Type                                      |\n| ------------ | ----------------------------------------- |\n| **`remove`** | <code>() =&gt; Promise&lt;void&gt;</code> |\n\n\n#### GoogleSubjectSegmentationModuleInstallProgressEvent\n\n| Prop           | Type                                                                                                                | Description                                                    | Since |\n| -------------- | ------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------- | ----- |\n| **`state`**    | <code><a href=\"#googlesubjectsegmentationmoduleinstallstate\">GoogleSubjectSegmentationModuleInstallState</a></code> | The current state of the installation.                         | 7.2.0 |\n| **`progress`** | <code>number</code>                                                                                                 | The progress of the installation in percent between 0 and 100. | 7.2.0 |\n\n\n### Enums\n\n\n#### GoogleSubjectSegmentationModuleInstallState\n\n| Members               | Value          | Since |\n| --------------------- | -------------- | ----- |\n| **`UNKNOWN`**         | <code>0</code> | 7.2.0 |\n| **`PENDING`**         | <code>1</code> | 7.2.0 |\n| **`DOWNLOADING`**     | <code>2</code> | 7.2.0 |\n| **`CANCELED`**        | <code>3</code> | 7.2.0 |\n| **`COMPLETED`**       | <code>4</code> | 7.2.0 |\n| **`FAILED`**          | <code>5</code> | 7.2.0 |\n| **`INSTALLING`**      | <code>6</code> | 7.2.0 |\n| **`DOWNLOAD_PAUSED`** | <code>7</code> | 7.2.0 |\n\n</docgen-api>\n\n## FAQ\n\n### What are the requirements to use this plugin on Android?\n\nThe plugin requires a minimum Android API level of 24. You also need to add the `com.google.mlkit.vision.DEPENDENCIES` meta data to your `AndroidManifest.xml` as described in the [Installation](#installation) section.\n\n### Why do I need the Google Subject Segmentation module on Android?\n\nOn Android, the segmentation is performed by the Google Subject Segmentation module. Use the `isGoogleSubjectSegmentationModuleAvailable()` method to check if the module is available on the device and the `installGoogleSubjectSegmentationModule()` method to install it if it is not.\n\n### How do I know when the module installation is complete?\n\nThe `installGoogleSubjectSegmentationModule()` method only starts the installation. Add a listener for the `googleSubjectSegmentationModuleInstallProgress` event to get notified about the current state of the installation and its progress in percent.\n\n### How can I adjust the accuracy of the segmentation?\n\nYou can set the confidence threshold using the `confidence` option of the `processImage(...)` method. The default value is `0.9`. Experiment with different values to find the best result for your images.\n\n### How can I scale the image before it is processed?\n\nUse the `width` and `height` options of the `processImage(...)` method to scale the image. If only one of the two values is given, the aspect ratio of the image is respected.\n\n### Can I use this plugin with Ionic, React, Vue or Angular?\n\nYes, the plugin is framework-agnostic. It works in any Capacitor app regardless of the web framework, including Ionic with Angular, React, or Vue, as well as plain JavaScript projects.\n\n## Related Plugins\n\n- [Selfie Segmentation](https://capawesome.io/docs/sdks/capacitor/mlkit/selfie-segmentation/): Unofficial Capacitor plugin for ML Kit Selfie Segmentation.\n- [Face Detection](https://capawesome.io/docs/sdks/capacitor/mlkit/face-detection/): Unofficial Capacitor plugin for ML Kit Face Detection.\n- [Face Mesh Detection](https://capawesome.io/docs/sdks/capacitor/mlkit/face-mesh-detection/): Unofficial Capacitor plugin for ML Kit Face Mesh Detection.\n\n## Terms & Privacy\n\nThis plugin uses the [Google ML Kit](https://developers.google.com/ml-kit):\n\n- [Terms & Privacy](https://developers.google.com/ml-kit/terms)\n- [Android Data Disclosure](https://developers.google.com/ml-kit/android-data-disclosure)\n- [iOS Data Disclosure](https://developers.google.com/ml-kit/ios-data-disclosure)\n\n## Newsletter\n\nStay up to date with the latest news and updates about the Capawesome, Capacitor, and Ionic ecosystem by subscribing to our [Capawesome Newsletter](https://cloud.capawesome.io/newsletter/).\n\n## Changelog\n\nSee [CHANGELOG.md](https://github.com/capawesome-team/capacitor-mlkit/blob/main/packages/subject-segmentation/CHANGELOG.md).\n\n## License\n\nSee [LICENSE](https://github.com/capawesome-team/capacitor-mlkit/blob/main/packages/subject-segmentation/LICENSE).\n\n[^1]: This project is not affiliated with, endorsed by, sponsored by, or approved by Google LLC or any of their affiliates or subsidiaries.\n","readmeFilename":"README.md"}