Commit 079dd022 authored by LinhNP's avatar LinhNP

update code

parent 7cb851c0
cmake_minimum_required(VERSION 3.4.1)
project("myapplicationnativec")
message(${CMAKE_PROJECT_NAME} ryu)
add_library(${CMAKE_PROJECT_NAME} SHARED
../native_add.cpp
# ../src/utils.h
# ../src/utils.cpp
# ../src/detector/nudedetector.h
# ../src/detector/nudedetector.cpp
# ../src/detector/enginebase.h
# ../src/detector/enginebase.cpp
)
#add_library(${CMAKE_PROJECT_NAME}
# SHARED
# IMPORTED )
#
#set_target_properties(${CMAKE_PROJECT_NAME}
# PROPERTIES IMPORTED_LOCATION
#
# app/src/main/jniLibs/arm64-v8a/libonnxruntime.so
#)
include_directories(
# "/home/thangdm/Software/opencv-4.9.0-android-sdk/OpenCV-android-sdk/sdk/native/jni/include/"
# "/home/thangdm/Software/onnxruntime-android-1.17.1/headers/"
)
target_link_directories( ${CMAKE_PROJECT_NAME} PUBLIC
# "/home/thangdm/Projects/Qt/AIMobileLib/build-AIMobileLib-Android_Qt_6_6_2_Clang_arm64_v8a-Release/"
)
target_link_libraries(${CMAKE_PROJECT_NAME}
# List libraries link to the target library
# /home/thangdm/Projects/Android/flutter_ffi/android/app/src/main/jniLibs/arm64-v8a/libQt6Core_arm64-v8a.so
# /home/thangdm/Projects/Android/flutter_ffi/android/app/src/main/jniLibs/arm64-v8a/libQt6Gui_arm64-v8a.so
# /home/thangdm/Projects/Android/flutter_ffi/android/app/src/main/jniLibs/arm64-v8a/libonnxruntime.so
# /home/thangdm/Projects/Android/flutter_ffi/android/app/src/main/jniLibs/arm64-v8a/libopencv_java4.so
# # /home/thangdm/Qt/6.6.2/android_arm64_v8a/lib/libQt6Gui_arm64-v8a.so
# /home/thangdm/Projects/Android/flutter_ffi/android/app/src/main/jniLibs/arm64-v8a/libAIMobileLib_arm64-v8a.so
log)
\ No newline at end of file
# Uncomment this line to define a global platform for your project # Uncomment this line to define a global platform for your project
platform :ios, '17.4' platform :ios, '12'
use_frameworks! use_frameworks!
# CocoaPods analytics sends network stats synchronously affecting flutter build latency. # CocoaPods analytics sends network stats synchronously affecting flutter build latency.
......
...@@ -24,6 +24,6 @@ SPEC CHECKSUMS: ...@@ -24,6 +24,6 @@ SPEC CHECKSUMS:
path_provider_foundation: 2b6b4c569c0fb62ec74538f866245ac84301af46 path_provider_foundation: 2b6b4c569c0fb62ec74538f866245ac84301af46
permission_handler_apple: 9878588469a2b0d0fc1e048d9f43605f92e6cec2 permission_handler_apple: 9878588469a2b0d0fc1e048d9f43605f92e6cec2
PODFILE CHECKSUM: 44a20dcded4fc328b465643033e4019d5a4e09ba PODFILE CHECKSUM: fe994e98d2939c49e37e478d3d4af64fe1d68cf8
COCOAPODS: 1.15.2 COCOAPODS: 1.15.2
...@@ -7,15 +7,17 @@ ...@@ -7,15 +7,17 @@
objects = { objects = {
/* Begin PBXBuildFile section */ /* Begin PBXBuildFile section */
28E1A3B450F7609BD06C4D53 /* Pods_RunnerTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1BC5FC48DF8D7A735D46B1F3 /* Pods_RunnerTests.framework */; };
331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C807B294A618700263BE5 /* RunnerTests.swift */; }; 331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C807B294A618700263BE5 /* RunnerTests.swift */; };
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
586F255A1EEAB94615B3FDF0 /* Pods_RunnerTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B0B4F7D418D675DEB585EF14 /* Pods_RunnerTests.framework */; };
730BDD162C194A6D006297C6 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 730BDD152C194A6D006297C6 /* Assets.xcassets */; }; 730BDD162C194A6D006297C6 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 730BDD152C194A6D006297C6 /* Assets.xcassets */; };
730BDD462C198B91006297C6 /* nudenet.onnx in Resources */ = {isa = PBXBuildFile; fileRef = 730BDD452C198B90006297C6 /* nudenet.onnx */; }; 730BDD462C198B91006297C6 /* nudenet.onnx in Resources */ = {isa = PBXBuildFile; fileRef = 730BDD452C198B90006297C6 /* nudenet.onnx */; };
730BDD4B2C199E4F006297C6 /* Runner-Bridging-Header.c in Sources */ = {isa = PBXBuildFile; fileRef = 730BDD4A2C199E4F006297C6 /* Runner-Bridging-Header.c */; }; 730BDD4B2C199E4F006297C6 /* Runner-Bridging-Header.c in Sources */ = {isa = PBXBuildFile; fileRef = 730BDD4A2C199E4F006297C6 /* Runner-Bridging-Header.c */; };
730BDD4D2C1A839B006297C6 /* lisa1.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 730BDD4C2C1A839A006297C6 /* lisa1.jpg */; }; 730BDD4D2C1A839B006297C6 /* lisa1.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 730BDD4C2C1A839A006297C6 /* lisa1.jpg */; };
732B22F22C1679BE0066F3F2 /* anhai2.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 732B22F12C1679BE0066F3F2 /* anhai2.cpp */; };
734422C02C213E0400FFF4C8 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 734422BF2C213E0400FFF4C8 /* GeneratedPluginRegistrant.m */; }; 734422C02C213E0400FFF4C8 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 734422BF2C213E0400FFF4C8 /* GeneratedPluginRegistrant.m */; };
734423352C22CD2100FFF4C8 /* nude.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 734423342C22CD2100FFF4C8 /* nude.jpg */; };
734423372C22D08900FFF4C8 /* david.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 734423362C22D08900FFF4C8 /* david.jpg */; };
734423392C2A743D00FFF4C8 /* native_c.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 734423382C2A743D00FFF4C8 /* native_c.cpp */; };
7366A9942C17FB8500025EF3 /* opencv2.framework in Embed Libraries */ = {isa = PBXBuildFile; fileRef = 7366A9892C17F8D400025EF3 /* opencv2.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 7366A9942C17FB8500025EF3 /* opencv2.framework in Embed Libraries */ = {isa = PBXBuildFile; fileRef = 7366A9892C17F8D400025EF3 /* opencv2.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
7366A9BB2C182F3500025EF3 /* opencv2.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7366A9892C17F8D400025EF3 /* opencv2.framework */; }; 7366A9BB2C182F3500025EF3 /* opencv2.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7366A9892C17F8D400025EF3 /* opencv2.framework */; };
73C1A1002C18475C00D4644C /* libonnxruntime_common.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 7366A9DF2C1836B400025EF3 /* libonnxruntime_common.a */; }; 73C1A1002C18475C00D4644C /* libonnxruntime_common.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 7366A9DF2C1836B400025EF3 /* libonnxruntime_common.a */; };
...@@ -52,7 +54,7 @@ ...@@ -52,7 +54,7 @@
74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
C7745F58D8179ED233FE3E4A /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 215110FEF365A823A0605A82 /* Pods_Runner.framework */; }; C23542EA638DBFBA853362FF /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 853A57DDA8784E2FF26C0E79 /* Pods_Runner.framework */; };
/* End PBXBuildFile section */ /* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */ /* Begin PBXContainerItemProxy section */
...@@ -80,21 +82,23 @@ ...@@ -80,21 +82,23 @@
/* End PBXCopyFilesBuildPhase section */ /* End PBXCopyFilesBuildPhase section */
/* Begin PBXFileReference section */ /* Begin PBXFileReference section */
215110FEF365A823A0605A82 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 1BC5FC48DF8D7A735D46B1F3 /* Pods_RunnerTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RunnerTests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
32E8FDA607E9FB6F509CB457 /* Pods-RunnerTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.debug.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.debug.xcconfig"; sourceTree = "<group>"; };
331C807B294A618700263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = "<group>"; }; 331C807B294A618700263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = "<group>"; };
331C8081294A63A400263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 331C8081294A63A400263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; }; 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
5F49DCDCE503B54DFCF26F0A /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = "<group>"; }; 72771C176659B0D7EBE4DFAB /* Pods-RunnerTests.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.profile.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.profile.xcconfig"; sourceTree = "<group>"; };
67DBFF81659AC6475F916F25 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = "<group>"; };
730665142C16D58E005BED3B /* PrefixHeader.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = PrefixHeader.pch; sourceTree = "<group>"; }; 730665142C16D58E005BED3B /* PrefixHeader.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = PrefixHeader.pch; sourceTree = "<group>"; };
730BDD152C194A6D006297C6 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Assets.xcassets; path = ../Assets.xcassets; sourceTree = "<group>"; }; 730BDD152C194A6D006297C6 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Assets.xcassets; path = ../Assets.xcassets; sourceTree = "<group>"; };
730BDD452C198B90006297C6 /* nudenet.onnx */ = {isa = PBXFileReference; lastKnownFileType = file; name = nudenet.onnx; path = ../../assets/nudenet.onnx; sourceTree = "<group>"; }; 730BDD452C198B90006297C6 /* nudenet.onnx */ = {isa = PBXFileReference; lastKnownFileType = file; name = nudenet.onnx; path = ../../assets/nudenet.onnx; sourceTree = "<group>"; };
730BDD492C199DFB006297C6 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = "<group>"; }; 730BDD492C199DFB006297C6 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = "<group>"; };
730BDD4A2C199E4F006297C6 /* Runner-Bridging-Header.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = "Runner-Bridging-Header.c"; sourceTree = "<group>"; }; 730BDD4A2C199E4F006297C6 /* Runner-Bridging-Header.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = "Runner-Bridging-Header.c"; sourceTree = "<group>"; };
730BDD4C2C1A839A006297C6 /* lisa1.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; name = lisa1.jpg; path = ../../assets/lisa1.jpg; sourceTree = "<group>"; }; 730BDD4C2C1A839A006297C6 /* lisa1.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; name = lisa1.jpg; path = ../../assets/lisa1.jpg; sourceTree = "<group>"; };
732B22F12C1679BE0066F3F2 /* anhai2.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = anhai2.cpp; sourceTree = "<group>"; };
734422BE2C213E0400FFF4C8 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = GeneratedPluginRegistrant.h; path = ../../../../StudioProjects/show_image_documents/ios/Runner/GeneratedPluginRegistrant.h; sourceTree = "<group>"; }; 734422BE2C213E0400FFF4C8 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = GeneratedPluginRegistrant.h; path = ../../../../StudioProjects/show_image_documents/ios/Runner/GeneratedPluginRegistrant.h; sourceTree = "<group>"; };
734422BF2C213E0400FFF4C8 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = GeneratedPluginRegistrant.m; path = ../../../../StudioProjects/show_image_documents/ios/Runner/GeneratedPluginRegistrant.m; sourceTree = "<group>"; }; 734422BF2C213E0400FFF4C8 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = GeneratedPluginRegistrant.m; path = ../../../../StudioProjects/show_image_documents/ios/Runner/GeneratedPluginRegistrant.m; sourceTree = "<group>"; };
734423342C22CD2100FFF4C8 /* nude.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; name = nude.jpg; path = ../../assets/nude.jpg; sourceTree = "<group>"; };
734423362C22D08900FFF4C8 /* david.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; name = david.jpg; path = ../../assets/david.jpg; sourceTree = "<group>"; };
734423382C2A743D00FFF4C8 /* native_c.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = native_c.cpp; sourceTree = "<group>"; };
7366A9892C17F8D400025EF3 /* opencv2.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = opencv2.framework; path = ../../../../Downloads/opencv2.framework; sourceTree = "<group>"; }; 7366A9892C17F8D400025EF3 /* opencv2.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = opencv2.framework; path = ../../../../Downloads/opencv2.framework; sourceTree = "<group>"; };
7366A9D62C18319100025EF3 /* onnxruntime.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = onnxruntime.framework; path = "../../../onnx/onnxruntime-1.18.0/build/iOS/Release/Release-iphoneos/static_framework/onnxruntime.framework"; sourceTree = "<group>"; }; 7366A9D62C18319100025EF3 /* onnxruntime.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = onnxruntime.framework; path = "../../../onnx/onnxruntime-1.18.0/build/iOS/Release/Release-iphoneos/static_framework/onnxruntime.framework"; sourceTree = "<group>"; };
7366A9DC2C18347800025EF3 /* onnxruntime.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = onnxruntime.framework; path = "../../../../onnx/onnxruntime-1.18.0/build/iOS/Release/Release-iphoneos/static_framework/onnxruntime.framework"; sourceTree = "<group>"; }; 7366A9DC2C18347800025EF3 /* onnxruntime.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = onnxruntime.framework; path = "../../../../onnx/onnxruntime-1.18.0/build/iOS/Release/Release-iphoneos/static_framework/onnxruntime.framework"; sourceTree = "<group>"; };
...@@ -135,18 +139,18 @@ ...@@ -135,18 +139,18 @@
73C1A1332C184F9C00D4644C /* enginebase.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = enginebase.cpp; path = ../c/src/detector/enginebase.cpp; sourceTree = "<group>"; }; 73C1A1332C184F9C00D4644C /* enginebase.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = enginebase.cpp; path = ../c/src/detector/enginebase.cpp; sourceTree = "<group>"; };
73C1A1372C18545900D4644C /* nudenet.onnx */ = {isa = PBXFileReference; lastKnownFileType = file; name = nudenet.onnx; path = ../../../Downloads/nudenet.onnx; sourceTree = "<group>"; }; 73C1A1372C18545900D4644C /* nudenet.onnx */ = {isa = PBXFileReference; lastKnownFileType = file; name = nudenet.onnx; path = ../../../Downloads/nudenet.onnx; sourceTree = "<group>"; };
74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; }; 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
74D7F545CB9A38471FF78D98 /* Pods-RunnerTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.debug.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.debug.xcconfig"; sourceTree = "<group>"; };
7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; }; 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; };
81882916D85A919E84652769 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = "<group>"; };
853A57DDA8784E2FF26C0E79 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = "<group>"; }; 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = "<group>"; };
9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = "<group>"; }; 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = "<group>"; };
97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; }; 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; }; 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; }; 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
A532555E28996D9ADBDD7DD1 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = "<group>"; }; BA2E4EB3DD33B26E9E2B1938 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = "<group>"; };
B0B4F7D418D675DEB585EF14 /* Pods_RunnerTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RunnerTests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; BC87875B7DFE744575CC8C06 /* Pods-RunnerTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.release.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.release.xcconfig"; sourceTree = "<group>"; };
DB36B114BC9B3057BE0B6211 /* Pods-RunnerTests.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.profile.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.profile.xcconfig"; sourceTree = "<group>"; }; C1F68B49942C75EA6F84E9F9 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = "<group>"; };
F34E9325A757ED4FB46283D4 /* Pods-RunnerTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.release.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.release.xcconfig"; sourceTree = "<group>"; };
/* End PBXFileReference section */ /* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */ /* Begin PBXFrameworksBuildPhase section */
...@@ -182,8 +186,8 @@ ...@@ -182,8 +186,8 @@
73C1A1082C18475C00D4644C /* libonnxruntime_session.a in Frameworks */, 73C1A1082C18475C00D4644C /* libonnxruntime_session.a in Frameworks */,
73C1A1072C18475C00D4644C /* libonnxruntime_providers.a in Frameworks */, 73C1A1072C18475C00D4644C /* libonnxruntime_providers.a in Frameworks */,
73C1A1092C18475C00D4644C /* libonnxruntime_util.a in Frameworks */, 73C1A1092C18475C00D4644C /* libonnxruntime_util.a in Frameworks */,
C7745F58D8179ED233FE3E4A /* Pods_Runner.framework in Frameworks */,
7366A9BB2C182F3500025EF3 /* opencv2.framework in Frameworks */, 7366A9BB2C182F3500025EF3 /* opencv2.framework in Frameworks */,
C23542EA638DBFBA853362FF /* Pods_Runner.framework in Frameworks */,
); );
runOnlyForDeploymentPostprocessing = 0; runOnlyForDeploymentPostprocessing = 0;
}; };
...@@ -191,7 +195,7 @@ ...@@ -191,7 +195,7 @@
isa = PBXFrameworksBuildPhase; isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647; buildActionMask = 2147483647;
files = ( files = (
586F255A1EEAB94615B3FDF0 /* Pods_RunnerTests.framework in Frameworks */, 28E1A3B450F7609BD06C4D53 /* Pods_RunnerTests.framework in Frameworks */,
); );
runOnlyForDeploymentPostprocessing = 0; runOnlyForDeploymentPostprocessing = 0;
}; };
...@@ -240,8 +244,8 @@ ...@@ -240,8 +244,8 @@
7366A9E72C1836B400025EF3 /* libonnxruntime_session.a */, 7366A9E72C1836B400025EF3 /* libonnxruntime_session.a */,
7366A9E42C1836B400025EF3 /* libonnxruntime_util.a */, 7366A9E42C1836B400025EF3 /* libonnxruntime_util.a */,
7366A9D62C18319100025EF3 /* onnxruntime.framework */, 7366A9D62C18319100025EF3 /* onnxruntime.framework */,
215110FEF365A823A0605A82 /* Pods_Runner.framework */, 853A57DDA8784E2FF26C0E79 /* Pods_Runner.framework */,
B0B4F7D418D675DEB585EF14 /* Pods_RunnerTests.framework */, 1BC5FC48DF8D7A735D46B1F3 /* Pods_RunnerTests.framework */,
); );
name = Frameworks; name = Frameworks;
sourceTree = "<group>"; sourceTree = "<group>";
...@@ -266,7 +270,7 @@ ...@@ -266,7 +270,7 @@
73C1A12E2C184F9B00D4644C /* nudedetector.h */, 73C1A12E2C184F9B00D4644C /* nudedetector.h */,
73C1A1302C184F9B00D4644C /* utils.cpp */, 73C1A1302C184F9B00D4644C /* utils.cpp */,
73C1A1322C184F9C00D4644C /* utils.h */, 73C1A1322C184F9C00D4644C /* utils.h */,
732B22F12C1679BE0066F3F2 /* anhai2.cpp */, 734423382C2A743D00FFF4C8 /* native_c.cpp */,
9740EEB11CF90186004384FC /* Flutter */, 9740EEB11CF90186004384FC /* Flutter */,
97C146F01CF9000F007C117D /* Runner */, 97C146F01CF9000F007C117D /* Runner */,
97C146EF1CF9000F007C117D /* Products */, 97C146EF1CF9000F007C117D /* Products */,
...@@ -288,7 +292,9 @@ ...@@ -288,7 +292,9 @@
97C146F01CF9000F007C117D /* Runner */ = { 97C146F01CF9000F007C117D /* Runner */ = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
734423362C22D08900FFF4C8 /* david.jpg */,
730BDD4C2C1A839A006297C6 /* lisa1.jpg */, 730BDD4C2C1A839A006297C6 /* lisa1.jpg */,
734423342C22CD2100FFF4C8 /* nude.jpg */,
730BDD152C194A6D006297C6 /* Assets.xcassets */, 730BDD152C194A6D006297C6 /* Assets.xcassets */,
734422BE2C213E0400FFF4C8 /* GeneratedPluginRegistrant.h */, 734422BE2C213E0400FFF4C8 /* GeneratedPluginRegistrant.h */,
734422BF2C213E0400FFF4C8 /* GeneratedPluginRegistrant.m */, 734422BF2C213E0400FFF4C8 /* GeneratedPluginRegistrant.m */,
...@@ -309,12 +315,12 @@ ...@@ -309,12 +315,12 @@
DB00E4802B52D3AB8E1877ED /* Pods */ = { DB00E4802B52D3AB8E1877ED /* Pods */ = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
A532555E28996D9ADBDD7DD1 /* Pods-Runner.debug.xcconfig */, 81882916D85A919E84652769 /* Pods-Runner.debug.xcconfig */,
67DBFF81659AC6475F916F25 /* Pods-Runner.release.xcconfig */, C1F68B49942C75EA6F84E9F9 /* Pods-Runner.release.xcconfig */,
5F49DCDCE503B54DFCF26F0A /* Pods-Runner.profile.xcconfig */, BA2E4EB3DD33B26E9E2B1938 /* Pods-Runner.profile.xcconfig */,
74D7F545CB9A38471FF78D98 /* Pods-RunnerTests.debug.xcconfig */, 32E8FDA607E9FB6F509CB457 /* Pods-RunnerTests.debug.xcconfig */,
F34E9325A757ED4FB46283D4 /* Pods-RunnerTests.release.xcconfig */, BC87875B7DFE744575CC8C06 /* Pods-RunnerTests.release.xcconfig */,
DB36B114BC9B3057BE0B6211 /* Pods-RunnerTests.profile.xcconfig */, 72771C176659B0D7EBE4DFAB /* Pods-RunnerTests.profile.xcconfig */,
); );
path = Pods; path = Pods;
sourceTree = "<group>"; sourceTree = "<group>";
...@@ -326,7 +332,7 @@ ...@@ -326,7 +332,7 @@
isa = PBXNativeTarget; isa = PBXNativeTarget;
buildConfigurationList = 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */; buildConfigurationList = 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */;
buildPhases = ( buildPhases = (
FC4798852AED11AFD58AF8CD /* [CP] Check Pods Manifest.lock */, 8BEB0ACA6DC07AAF29670D9C /* [CP] Check Pods Manifest.lock */,
331C807D294A63A400263BE5 /* Sources */, 331C807D294A63A400263BE5 /* Sources */,
331C807F294A63A400263BE5 /* Resources */, 331C807F294A63A400263BE5 /* Resources */,
E27BEE314B0B10D6CDE8469E /* Frameworks */, E27BEE314B0B10D6CDE8469E /* Frameworks */,
...@@ -345,15 +351,15 @@ ...@@ -345,15 +351,15 @@
isa = PBXNativeTarget; isa = PBXNativeTarget;
buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
buildPhases = ( buildPhases = (
1B8675E5AAE75EB7E1A6FCC4 /* [CP] Check Pods Manifest.lock */, 71EC8E2803D1C4137946E2EB /* [CP] Check Pods Manifest.lock */,
9740EEB61CF901F6004384FC /* Run Script */, 9740EEB61CF901F6004384FC /* Run Script */,
97C146EA1CF9000F007C117D /* Sources */, 97C146EA1CF9000F007C117D /* Sources */,
97C146EB1CF9000F007C117D /* Frameworks */, 97C146EB1CF9000F007C117D /* Frameworks */,
97C146EC1CF9000F007C117D /* Resources */, 97C146EC1CF9000F007C117D /* Resources */,
3B06AD1E1E4923F5004D2608 /* Thin Binary */, 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
7366A96B2C16FCF500025EF3 /* Embed Libraries */, 7366A96B2C16FCF500025EF3 /* Embed Libraries */,
D7F66A1CEFDF1CEAF33914A8 /* [CP] Copy Pods Resources */, 470DEE897289BC168321E129 /* [CP] Embed Pods Frameworks */,
27B53338C84DFDA2D23C6D44 /* [CP] Embed Pods Frameworks */, 158D4F8365865F442E9BE0B6 /* [CP] Copy Pods Resources */,
); );
buildRules = ( buildRules = (
); );
...@@ -415,9 +421,11 @@ ...@@ -415,9 +421,11 @@
isa = PBXResourcesBuildPhase; isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647; buildActionMask = 2147483647;
files = ( files = (
734423372C22D08900FFF4C8 /* david.jpg in Resources */,
97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
734423352C22CD2100FFF4C8 /* nude.jpg in Resources */,
730BDD462C198B91006297C6 /* nudenet.onnx in Resources */, 730BDD462C198B91006297C6 /* nudenet.onnx in Resources */,
730BDD4D2C1A839B006297C6 /* lisa1.jpg in Resources */, 730BDD4D2C1A839B006297C6 /* lisa1.jpg in Resources */,
730BDD162C194A6D006297C6 /* Assets.xcassets in Resources */, 730BDD162C194A6D006297C6 /* Assets.xcassets in Resources */,
...@@ -427,43 +435,21 @@ ...@@ -427,43 +435,21 @@
/* End PBXResourcesBuildPhase section */ /* End PBXResourcesBuildPhase section */
/* Begin PBXShellScriptBuildPhase section */ /* Begin PBXShellScriptBuildPhase section */
1B8675E5AAE75EB7E1A6FCC4 /* [CP] Check Pods Manifest.lock */ = { 158D4F8365865F442E9BE0B6 /* [CP] Copy Pods Resources */ = {
isa = PBXShellScriptBuildPhase; isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647; buildActionMask = 2147483647;
files = ( files = (
); );
inputFileListPaths = ( inputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-input-files.xcfilelist",
); );
inputPaths = ( name = "[CP] Copy Pods Resources";
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
"${PODS_ROOT}/Manifest.lock",
);
name = "[CP] Check Pods Manifest.lock";
outputFileListPaths = (
);
outputPaths = (
"$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
showEnvVarsInLog = 0;
};
27B53338C84DFDA2D23C6D44 /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",
);
name = "[CP] Embed Pods Frameworks";
outputFileListPaths = ( outputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist", "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-output-files.xcfilelist",
); );
runOnlyForDeploymentPostprocessing = 0; runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh; shellPath = /bin/sh;
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n"; shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources.sh\"\n";
showEnvVarsInLog = 0; showEnvVarsInLog = 0;
}; };
3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
...@@ -482,39 +468,46 @@ ...@@ -482,39 +468,46 @@
shellPath = /bin/sh; shellPath = /bin/sh;
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin\n"; shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin\n";
}; };
9740EEB61CF901F6004384FC /* Run Script */ = { 470DEE897289BC168321E129 /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase; isa = PBXShellScriptBuildPhase;
alwaysOutOfDate = 1;
buildActionMask = 2147483647; buildActionMask = 2147483647;
files = ( files = (
); );
inputPaths = ( inputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",
); );
name = "Run Script"; name = "[CP] Embed Pods Frameworks";
outputPaths = ( outputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist",
); );
runOnlyForDeploymentPostprocessing = 0; runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh; shellPath = /bin/sh;
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build\n"; shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
showEnvVarsInLog = 0;
}; };
D7F66A1CEFDF1CEAF33914A8 /* [CP] Copy Pods Resources */ = { 71EC8E2803D1C4137946E2EB /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase; isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647; buildActionMask = 2147483647;
files = ( files = (
); );
inputFileListPaths = ( inputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-input-files.xcfilelist",
); );
name = "[CP] Copy Pods Resources"; inputPaths = (
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
"${PODS_ROOT}/Manifest.lock",
);
name = "[CP] Check Pods Manifest.lock";
outputFileListPaths = ( outputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-output-files.xcfilelist", );
outputPaths = (
"$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
); );
runOnlyForDeploymentPostprocessing = 0; runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh; shellPath = /bin/sh;
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources.sh\"\n"; shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
showEnvVarsInLog = 0; showEnvVarsInLog = 0;
}; };
FC4798852AED11AFD58AF8CD /* [CP] Check Pods Manifest.lock */ = { 8BEB0ACA6DC07AAF29670D9C /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase; isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647; buildActionMask = 2147483647;
files = ( files = (
...@@ -536,6 +529,21 @@ ...@@ -536,6 +529,21 @@
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
showEnvVarsInLog = 0; showEnvVarsInLog = 0;
}; };
9740EEB61CF901F6004384FC /* Run Script */ = {
isa = PBXShellScriptBuildPhase;
alwaysOutOfDate = 1;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "Run Script";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build\n";
};
/* End PBXShellScriptBuildPhase section */ /* End PBXShellScriptBuildPhase section */
/* Begin PBXSourcesBuildPhase section */ /* Begin PBXSourcesBuildPhase section */
...@@ -552,10 +560,10 @@ ...@@ -552,10 +560,10 @@
buildActionMask = 2147483647; buildActionMask = 2147483647;
files = ( files = (
74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
732B22F22C1679BE0066F3F2 /* anhai2.cpp in Sources */,
73C1A1362C184F9C00D4644C /* enginebase.cpp in Sources */, 73C1A1362C184F9C00D4644C /* enginebase.cpp in Sources */,
73C1A1342C184F9C00D4644C /* utils.cpp in Sources */, 73C1A1342C184F9C00D4644C /* utils.cpp in Sources */,
730BDD4B2C199E4F006297C6 /* Runner-Bridging-Header.c in Sources */, 730BDD4B2C199E4F006297C6 /* Runner-Bridging-Header.c in Sources */,
734423392C2A743D00FFF4C8 /* native_c.cpp in Sources */,
734422C02C213E0400FFF4C8 /* GeneratedPluginRegistrant.m in Sources */, 734422C02C213E0400FFF4C8 /* GeneratedPluginRegistrant.m in Sources */,
73C1A1352C184F9C00D4644C /* nudedetector.cpp in Sources */, 73C1A1352C184F9C00D4644C /* nudedetector.cpp in Sources */,
); );
...@@ -654,7 +662,7 @@ ...@@ -654,7 +662,7 @@
CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_MODULES = YES;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
DEVELOPMENT_ASSET_PATHS = ""; DEVELOPMENT_ASSET_PATHS = "";
DEVELOPMENT_TEAM = 5V37UN7M72; DEVELOPMENT_TEAM = PG7T54UHR6;
EMBED_ASSET_PACKS_IN_PRODUCT_BUNDLE = YES; EMBED_ASSET_PACKS_IN_PRODUCT_BUNDLE = YES;
ENABLE_BITCODE = NO; ENABLE_BITCODE = NO;
EXCLUDED_ARCHS = arm64; EXCLUDED_ARCHS = arm64;
...@@ -679,8 +687,9 @@ ...@@ -679,8 +687,9 @@
LIBRARY_SEARCH_PATHS = ( LIBRARY_SEARCH_PATHS = (
"/Users/linhnp/onnx/onnxruntime-1.18.0/build/iOS/Release/Release-iphoneos", "/Users/linhnp/onnx/onnxruntime-1.18.0/build/iOS/Release/Release-iphoneos",
"/Users/linhnp/onnx/onnxruntime-1.18.0/build/iOS/Release/static_libraries/**", "/Users/linhnp/onnx/onnxruntime-1.18.0/build/iOS/Release/static_libraries/**",
"$(inherited)",
); );
PRODUCT_BUNDLE_IDENTIFIER = com.example.demoNudedetector; PRODUCT_BUNDLE_IDENTIFIER = com.example.nudedetector;
PRODUCT_NAME = "$(TARGET_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_VERSION = 5.0; SWIFT_VERSION = 5.0;
...@@ -691,7 +700,7 @@ ...@@ -691,7 +700,7 @@
}; };
331C8088294A63A400263BE5 /* Debug */ = { 331C8088294A63A400263BE5 /* Debug */ = {
isa = XCBuildConfiguration; isa = XCBuildConfiguration;
baseConfigurationReference = 74D7F545CB9A38471FF78D98 /* Pods-RunnerTests.debug.xcconfig */; baseConfigurationReference = 32E8FDA607E9FB6F509CB457 /* Pods-RunnerTests.debug.xcconfig */;
buildSettings = { buildSettings = {
BUNDLE_LOADER = "$(TEST_HOST)"; BUNDLE_LOADER = "$(TEST_HOST)";
CODE_SIGN_STYLE = Automatic; CODE_SIGN_STYLE = Automatic;
...@@ -709,7 +718,7 @@ ...@@ -709,7 +718,7 @@
}; };
331C8089294A63A400263BE5 /* Release */ = { 331C8089294A63A400263BE5 /* Release */ = {
isa = XCBuildConfiguration; isa = XCBuildConfiguration;
baseConfigurationReference = F34E9325A757ED4FB46283D4 /* Pods-RunnerTests.release.xcconfig */; baseConfigurationReference = BC87875B7DFE744575CC8C06 /* Pods-RunnerTests.release.xcconfig */;
buildSettings = { buildSettings = {
BUNDLE_LOADER = "$(TEST_HOST)"; BUNDLE_LOADER = "$(TEST_HOST)";
CODE_SIGN_STYLE = Automatic; CODE_SIGN_STYLE = Automatic;
...@@ -725,7 +734,7 @@ ...@@ -725,7 +734,7 @@
}; };
331C808A294A63A400263BE5 /* Profile */ = { 331C808A294A63A400263BE5 /* Profile */ = {
isa = XCBuildConfiguration; isa = XCBuildConfiguration;
baseConfigurationReference = DB36B114BC9B3057BE0B6211 /* Pods-RunnerTests.profile.xcconfig */; baseConfigurationReference = 72771C176659B0D7EBE4DFAB /* Pods-RunnerTests.profile.xcconfig */;
buildSettings = { buildSettings = {
BUNDLE_LOADER = "$(TEST_HOST)"; BUNDLE_LOADER = "$(TEST_HOST)";
CODE_SIGN_STYLE = Automatic; CODE_SIGN_STYLE = Automatic;
...@@ -862,7 +871,7 @@ ...@@ -862,7 +871,7 @@
CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_MODULES = YES;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
DEVELOPMENT_ASSET_PATHS = ""; DEVELOPMENT_ASSET_PATHS = "";
DEVELOPMENT_TEAM = 5V37UN7M72; DEVELOPMENT_TEAM = PG7T54UHR6;
EMBED_ASSET_PACKS_IN_PRODUCT_BUNDLE = YES; EMBED_ASSET_PACKS_IN_PRODUCT_BUNDLE = YES;
ENABLE_BITCODE = NO; ENABLE_BITCODE = NO;
EXCLUDED_ARCHS = arm64; EXCLUDED_ARCHS = arm64;
...@@ -888,8 +897,9 @@ ...@@ -888,8 +897,9 @@
LIBRARY_SEARCH_PATHS = ( LIBRARY_SEARCH_PATHS = (
"/Users/linhnp/onnx/onnxruntime-1.18.0/build/iOS/Release/Release-iphoneos", "/Users/linhnp/onnx/onnxruntime-1.18.0/build/iOS/Release/Release-iphoneos",
"/Users/linhnp/onnx/onnxruntime-1.18.0/build/iOS/Release/static_libraries/**", "/Users/linhnp/onnx/onnxruntime-1.18.0/build/iOS/Release/static_libraries/**",
"$(inherited)",
); );
PRODUCT_BUNDLE_IDENTIFIER = com.example.demoNudedetector; PRODUCT_BUNDLE_IDENTIFIER = com.example.nudedetector;
PRODUCT_NAME = "$(TARGET_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_OPTIMIZATION_LEVEL = "-Onone"; SWIFT_OPTIMIZATION_LEVEL = "-Onone";
...@@ -909,7 +919,7 @@ ...@@ -909,7 +919,7 @@
CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_MODULES = YES;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
DEVELOPMENT_ASSET_PATHS = ""; DEVELOPMENT_ASSET_PATHS = "";
DEVELOPMENT_TEAM = 5V37UN7M72; DEVELOPMENT_TEAM = PG7T54UHR6;
EMBED_ASSET_PACKS_IN_PRODUCT_BUNDLE = YES; EMBED_ASSET_PACKS_IN_PRODUCT_BUNDLE = YES;
ENABLE_BITCODE = NO; ENABLE_BITCODE = NO;
EXCLUDED_ARCHS = arm64; EXCLUDED_ARCHS = arm64;
...@@ -934,8 +944,9 @@ ...@@ -934,8 +944,9 @@
LIBRARY_SEARCH_PATHS = ( LIBRARY_SEARCH_PATHS = (
"/Users/linhnp/onnx/onnxruntime-1.18.0/build/iOS/Release/Release-iphoneos", "/Users/linhnp/onnx/onnxruntime-1.18.0/build/iOS/Release/Release-iphoneos",
"/Users/linhnp/onnx/onnxruntime-1.18.0/build/iOS/Release/static_libraries/**", "/Users/linhnp/onnx/onnxruntime-1.18.0/build/iOS/Release/static_libraries/**",
"$(inherited)",
); );
PRODUCT_BUNDLE_IDENTIFIER = com.example.demoNudedetector; PRODUCT_BUNDLE_IDENTIFIER = com.example.nudedetector;
PRODUCT_NAME = "$(TARGET_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_VERSION = 5.0; SWIFT_VERSION = 5.0;
......
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PreviewsEnabled</key>
<false/>
</dict>
</plist>
...@@ -10,15 +10,16 @@ import UIKit ...@@ -10,15 +10,16 @@ import UIKit
_ application: UIApplication, _ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool { ) -> Bool {
print("Starting didFinishLaunchingWithOptions method...")
if let filePath = Bundle.main.path(forResource: "nudenet", ofType: "onnx") { if let filePath = Bundle.main.path(forResource: "nudenet", ofType: "onnx") {
print(filePath) print(filePath)
if let imgPath = Bundle.main.path(forResource: "lisa1", ofType: "jpg") { if let imgPath = Bundle.main.path(forResource: "david", ofType: "jpg") {
print(imgPath) print(imgPath)
// Tạo đường dẫn mới cho ảnh được lưu trong thư mục Documents // Tạo đường dẫn mới cho ảnh được lưu trong thư mục Documents
if var documentsPath = NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true).first { if var documentsPath = NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true).first {
documentsPath = documentsPath + "/lisa_rap.jpg"; documentsPath = documentsPath + "/porn.jpg";
callInitEngine(filePath, imgPath, documentsPath) callInitEngine(filePath, imgPath, documentsPath)
...@@ -27,7 +28,7 @@ import UIKit ...@@ -27,7 +28,7 @@ import UIKit
} }
if let documentsPath = NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true).first { if let documentsPath = NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true).first {
let imagePath = (documentsPath as NSString).appendingPathComponent("lisa_rap.jpg") let imagePath = (documentsPath as NSString).appendingPathComponent("porn.jpg")
if let image = UIImage(contentsOfFile: imagePath) { if let image = UIImage(contentsOfFile: imagePath) {
// Đã đọc thành công ảnh từ tệp // Đã đọc thành công ảnh từ tệp
...@@ -46,21 +47,22 @@ import UIKit ...@@ -46,21 +47,22 @@ import UIKit
} }
// create method get document path from swift
let controller = window?.rootViewController as! FlutterViewController let controller = window?.rootViewController as! FlutterViewController
let channel = FlutterMethodChannel(name: "com.example.app/native", binaryMessenger: controller.binaryMessenger) let channelVersion = FlutterMethodChannel(name: "native_method_chanel",
binaryMessenger: controller.binaryMessenger)
channel.setMethodCallHandler { (call: FlutterMethodCall, result: @escaping FlutterResult) in channelVersion.setMethodCallHandler({(call: FlutterMethodCall, result: @escaping FlutterResult) -> Void in
if call.method == "getAssetFilePath" { if call.method == "document_path" {
self.getAssetFilePath(result: result) if let documentsPath = NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true).first {
} else { // let imagePath = (documentsPath as NSString).appendingPathComponent("porn.jpg")
result(FlutterMethodNotImplemented) result(documentsPath)
} }
} }
// readAssetFile(result: <#T##FlutterResult##FlutterResult##(Any?) -> Void#>) })
print("Starting didFinishLaunchingWithOptions method...")
let result = super.application(application, didFinishLaunchingWithOptions: launchOptions) let result = super.application(application, didFinishLaunchingWithOptions: launchOptions)
print("Finishing didFinishLaunchingWithOptions method...") print("Finishing didFinishLaunchingWithOptions method...")
return result return result
......
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0"> <plist version="1.0">
<dict> <dict>
<key>CADisableMinimumFrameDurationOnPhone</key>
<true/>
<key>CFBundleDevelopmentRegion</key> <key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string> <string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleDisplayName</key> <key>CFBundleDisplayName</key>
...@@ -24,6 +26,8 @@ ...@@ -24,6 +26,8 @@
<string>$(FLUTTER_BUILD_NUMBER)</string> <string>$(FLUTTER_BUILD_NUMBER)</string>
<key>LSRequiresIPhoneOS</key> <key>LSRequiresIPhoneOS</key>
<true/> <true/>
<key>UIApplicationSupportsIndirectInputEvents</key>
<true/>
<key>UILaunchStoryboardName</key> <key>UILaunchStoryboardName</key>
<string>LaunchScreen</string> <string>LaunchScreen</string>
<key>UIMainStoryboardFile</key> <key>UIMainStoryboardFile</key>
...@@ -41,9 +45,5 @@ ...@@ -41,9 +45,5 @@
<string>UIInterfaceOrientationLandscapeLeft</string> <string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string> <string>UIInterfaceOrientationLandscapeRight</string>
</array> </array>
<key>CADisableMinimumFrameDurationOnPhone</key>
<true/>
<key>UIApplicationSupportsIndirectInputEvents</key>
<true/>
</dict> </dict>
</plist> </plist>
...@@ -55,12 +55,10 @@ void init_engine(const char* modelPath, const char* imgPath, const char* documen ...@@ -55,12 +55,10 @@ void init_engine(const char* modelPath, const char* imgPath, const char* documen
cv::Mat nudeImage = cv::imread(imgPath); cv::Mat nudeImage = cv::imread(imgPath);
//drawing
cv::Mat drawing = nudeImage.clone();
LOG_C("documentsPath: " <<documentsPath); LOG_C("documentsPath: " <<documentsPath);
cv::imwrite(documentsPath, drawing); // cv::imwrite(documentsPath, drawing);
auto firstBlood = CURRENT_MILIS; auto firstBlood = CURRENT_MILIS;
nudeEngine->InferenceEngine(nudeImage, documentsPath); nudeEngine->InferenceEngine(nudeImage, documentsPath);
......
#include <stdint.h>
#include <string>
#include "../c/src/detector/nudedetector.h"
#include <stdio.h>
//#include <onnxruntime/onnxruntime_cxx_api.h>
//#include <opencv2/opencv.hpp>
//#include <android/log.h>
//#define LOGR(x) __android_log_print(ANDROID_LOG_DEBUG, "flutter", x);
extern "C" __attribute__((visibility("default"))) __attribute__((used))
int32_t native_add(int32_t x, int32_t y) {
// LOGR("test from c native_add")
return x+y;
}
extern "C" __attribute__((visibility("default"))) __attribute__((used))
float native_add_floats(float x, float y) {
// LOGR("test from c native_add_floats");
return x + y;
}
extern "C" __attribute__((visibility("default"))) __attribute__((used))
bool native_compare_int(int32_t x, int32_t y) {
// LOGR("test from c native_compare_int");
return x == y;
}
extern "C" __attribute__((visibility("default"))) __attribute__((used))
const wchar_t* native_get_wstring(const wchar_t* input) {
static std::wstring result;
result = input;
result += L" hello world";
return result.c_str();
}
extern "C"
void test() {
printf("hello mon");
}
extern "C" __attribute__((visibility("default"))) __attribute__((used))
void init_engine(const char* modelPath, const char* imgPath, const char* documentsPath) {
NudeDetector *nudeEngine = new NudeDetector;
// nudeEngine->modelPath = "/storage/emulated/0/Models/Yolov8/NudeNet/NudeNet.onnx";
nudeEngine->modelPath = modelPath;
// nudeEngine->modelPath = "/assets/nudenet.onnx";
//"/private/var/containers/Bundle/Application/C3250AEF-83D8-4121-918F-7B8142F91B36/Runner.app/NudeNet.onnx";
nudeEngine->numThread = 1;
nudeEngine->modelShape = cv::Size(320,320);
nudeEngine->inputNodeDims = {1,3,320,320};
nudeEngine->objectThreshold = 0.2;
nudeEngine->InitEngine();
// LOGR("init engine done");
cv::Mat nudeImage = cv::imread(imgPath);
LOG_C("documentsPath: " <<documentsPath);
// cv::imwrite(documentsPath, drawing);
auto firstBlood = CURRENT_MILIS;
nudeEngine->InferenceEngine(nudeImage, documentsPath);
// LOGR("first blood: " + std::to_string(CURRENT_MILIS - firstBlood));
auto start = CURRENT_MILIS;
uint total=0;
// for(uint i=0; i < 100 ; i++){
// nudeEngine->InferenceEngine(nudeImage);
// total += CURRENT_MILIS-start;
// start = CURRENT_MILIS;
// }
// LOGR("average process time: " + std::to_string(total/100) + "ms");
//LOGR("finished")
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment