lovoo / NSFWDetector

A NSFW (aka porn) detector with CoreML
BSD 3-Clause "New" or "Revised" License
1.59k stars 109 forks source link

Bump to Swift 5 #25

Closed fabianehlert closed 2 years ago

fabianehlert commented 2 years ago
jap99 commented 2 years ago

Hi, can NSFWDetector only be used on images or can it also be used on videos? Thanks

On Jun 10, 2022, at 6:44 AM, Fabian Ehlert @.***> wrote:

Bumped to Swift 5 Minimum deployment target set to 12.0 Migrated to new configuration initializer in NSFWDetector.swift You can view, comment on, or merge this pull request online at:

https://github.com/lovoo/NSFWDetector/pull/25 https://github.com/lovoo/NSFWDetector/pull/25 Commit Summary

d3f33e8 https://github.com/lovoo/NSFWDetector/pull/25/commits/d3f33e8d5f1d0c9046d68e0c35482ade11342bb9 Bump to Swift 5 File Changes (17 files https://github.com/lovoo/NSFWDetector/pull/25/files) M Example/NSFWDetector.xcodeproj/project.pbxproj https://github.com/lovoo/NSFWDetector/pull/25/files#diff-ca4cbbb384d0134c92fa329f14a19382626ad0f065aecd79a8553ef454721f6a (17) M Example/Podfile.lock https://github.com/lovoo/NSFWDetector/pull/25/files#diff-1b57d35fba19038fbad4f5780aea42066cff31e7fc2da3ac4d1728b831c3d8d9 (6) M Example/Pods/Local Podspecs/NSFWDetector.podspec.json https://github.com/lovoo/NSFWDetector/pull/25/files#diff-5f29b19cf1da122754167c21deb245f224da268e46753c704155793f2101e0b4 (11) M Example/Pods/Manifest.lock https://github.com/lovoo/NSFWDetector/pull/25/files#diff-0d0de06738b40e0fba821b29412102c9d775682cc5ae72489577b9624b5f6b35 (6) M Example/Pods/Pods.xcodeproj/project.pbxproj https://github.com/lovoo/NSFWDetector/pull/25/files#diff-457b5511c90b2672606467f3487813bc5e9e7adb188af7ec2c8df0e9e34fc10a (726) A Example/Pods/Target Support Files/NSFWDetector/NSFWDetector-Info.plist https://github.com/lovoo/NSFWDetector/pull/25/files#diff-eb5a8fa45fc860a62390b86242a83a635cfcd1611430d1f9e32ec2b42e5f07fa (26) A Example/Pods/Target Support Files/NSFWDetector/NSFWDetector.debug.xcconfig https://github.com/lovoo/NSFWDetector/pull/25/files#diff-11cd240c17bafe4930c7775d429cc42b96aa1b2418e1d103f74171b73c074216 (14) A Example/Pods/Target Support Files/NSFWDetector/NSFWDetector.release.xcconfig https://github.com/lovoo/NSFWDetector/pull/25/files#diff-2f249c1bec3cc46ba23ff0817bfea1ca2e49076708c925ee7870ad06148f491a (14) A Example/Pods/Target Support Files/Pods-NSFWDetector_Example/Pods-NSFWDetector_Example-Info.plist https://github.com/lovoo/NSFWDetector/pull/25/files#diff-2f1db95505d832b266a0414d178c3bd1d001b3ec0623b392e1de2bdffaf76cda (26) M Example/Pods/Target Support Files/Pods-NSFWDetector_Example/Pods-NSFWDetector_Example-frameworks.sh https://github.com/lovoo/NSFWDetector/pull/25/files#diff-a307b1ed47a780c0e08c531e89a85b78d2338830a901a382be950ef7c9202a36 (113) M Example/Pods/Target Support Files/Pods-NSFWDetector_Example/Pods-NSFWDetector_Example.debug.xcconfig https://github.com/lovoo/NSFWDetector/pull/25/files#diff-d52bda28b5ae96165e6d8c915e103ee1a5123ee4402b24d79eb1e8ef1d91a39b (10) M Example/Pods/Target Support Files/Pods-NSFWDetector_Example/Pods-NSFWDetector_Example.release.xcconfig https://github.com/lovoo/NSFWDetector/pull/25/files#diff-fef5c45e1eda0a000c902cd641f15ab397ecfc07e017ef0f259369358baeecfc (10) A Example/Pods/Target Support Files/Pods-NSFWDetector_Tests/Pods-NSFWDetector_Tests-Info.plist https://github.com/lovoo/NSFWDetector/pull/25/files#diff-9a7758fe38e8480d5e0ada6e569e425cc7df9ebd7a132ecd320cc81a69f0ad94 (26) M Example/Pods/Target Support Files/Pods-NSFWDetector_Tests/Pods-NSFWDetector_Tests.debug.xcconfig https://github.com/lovoo/NSFWDetector/pull/25/files#diff-7a017158b6444261a4919ab22e02bc0b726a5c284c4380a314bbe84ade0d07bf (7) M Example/Pods/Target Support Files/Pods-NSFWDetector_Tests/Pods-NSFWDetector_Tests.release.xcconfig https://github.com/lovoo/NSFWDetector/pull/25/files#diff-a93849695eac59ef82bfb6a38ee42f2a8d58fdb0ce73696509c69b493ee5bace (7) M NSFWDetector.podspec https://github.com/lovoo/NSFWDetector/pull/25/files#diff-dab4ce81a68ac4c1446da35fbb3ceef3bf0c4534ebb0d4cf2d68c4166da4300d (6) M NSFWDetector/Classes/NSFWDetector.swift https://github.com/lovoo/NSFWDetector/pull/25/files#diff-2df28ce6ec07d8eb96163192cd4c9d14416df8542914a63e72672979f6aec3ce (2) Patch Links:

https://github.com/lovoo/NSFWDetector/pull/25.patch https://github.com/lovoo/NSFWDetector/pull/25.patch https://github.com/lovoo/NSFWDetector/pull/25.diff https://github.com/lovoo/NSFWDetector/pull/25.diff — Reply to this email directly, view it on GitHub https://github.com/lovoo/NSFWDetector/pull/25, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEEBNNFDMBC3J7JJMYCZSKLVONBEJANCNFSM5YNXOXDQ. You are receiving this because you are subscribed to this thread.

absolute-heike commented 2 years ago

@jap99 I already replied to your email, but in case someone else has the same question I'll post it here again :)

Yes, as a matter of fact it can also be used for video. You can have a look at the sample project on how to detect NSFW content in a CVPixelBuffer.

Most of the time you can extract a CVPixelBuffer frame from a video source for real time detection.

jap99 commented 2 years ago

Very cool, thank you :)

Sent from my iPhone

On Jun 13, 2022, at 1:55 AM, Michael Berg @.***> wrote:

 @jap99 I already replied to your email, but in case someone else has the same question I'll post it here again :)

Yes, as a matter of fact it can also be used for video. You can have a look at the sample project on how to detect NSFW content in a CVPixelBuffer.

Most of the time you can extract a CVPixelBuffer frame from a video source for real time detection.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.