├── AccessCamera.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ └── contents.xcworkspacedata └── xcuserdata │ └── veck.xcuserdatad │ └── xcschemes │ ├── AccessCamera.xcscheme │ └── xcschememanagement.plist ├── AccessCamera ├── AppDelegate.swift ├── Assets.xcassets │ └── AppIcon.appiconset │ │ └── Contents.json ├── Base.lproj │ └── Main.storyboard ├── Info.plist └── ViewController.swift ├── AccessCameraTests ├── AccessCameraTests.swift └── Info.plist ├── AccessCameraUITests ├── AccessCameraUITests.swift └── Info.plist ├── README.md └── demo.png /AccessCamera.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 988124271E1ED79200C3007C /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 988124261E1ED79200C3007C /* AppDelegate.swift */; }; 11 | 988124291E1ED79200C3007C /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 988124281E1ED79200C3007C /* ViewController.swift */; }; 12 | 9881242B1E1ED79200C3007C /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 9881242A1E1ED79200C3007C /* Assets.xcassets */; }; 13 | 9881242E1E1ED79200C3007C /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 9881242C1E1ED79200C3007C /* Main.storyboard */; }; 14 | 988124391E1ED79200C3007C /* AccessCameraTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 988124381E1ED79200C3007C /* AccessCameraTests.swift */; }; 15 | 988124441E1ED79200C3007C /* AccessCameraUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 988124431E1ED79200C3007C /* AccessCameraUITests.swift */; }; 16 | /* End PBXBuildFile section */ 17 | 18 | /* Begin PBXContainerItemProxy section */ 19 | 988124351E1ED79200C3007C /* PBXContainerItemProxy */ = { 20 | isa = PBXContainerItemProxy; 21 | containerPortal = 9881241B1E1ED79200C3007C /* Project object */; 22 | proxyType = 1; 23 | remoteGlobalIDString = 988124221E1ED79200C3007C; 24 | remoteInfo = AccessCamera; 25 | }; 26 | 988124401E1ED79200C3007C /* PBXContainerItemProxy */ = { 27 | isa = PBXContainerItemProxy; 28 | containerPortal = 9881241B1E1ED79200C3007C /* Project object */; 29 | proxyType = 1; 30 | remoteGlobalIDString = 988124221E1ED79200C3007C; 31 | remoteInfo = AccessCamera; 32 | }; 33 | /* End PBXContainerItemProxy section */ 34 | 35 | /* Begin PBXFileReference section */ 36 | 988124231E1ED79200C3007C /* AccessCamera.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = AccessCamera.app; sourceTree = BUILT_PRODUCTS_DIR; }; 37 | 988124261E1ED79200C3007C /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 38 | 988124281E1ED79200C3007C /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 39 | 9881242A1E1ED79200C3007C /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 40 | 9881242D1E1ED79200C3007C /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 41 | 9881242F1E1ED79200C3007C /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 42 | 988124341E1ED79200C3007C /* AccessCameraTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = AccessCameraTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 43 | 988124381E1ED79200C3007C /* AccessCameraTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AccessCameraTests.swift; sourceTree = ""; }; 44 | 9881243A1E1ED79200C3007C /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 45 | 9881243F1E1ED79200C3007C /* AccessCameraUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = AccessCameraUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 46 | 988124431E1ED79200C3007C /* AccessCameraUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AccessCameraUITests.swift; sourceTree = ""; }; 47 | 988124451E1ED79200C3007C /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 48 | /* End PBXFileReference section */ 49 | 50 | /* Begin PBXFrameworksBuildPhase section */ 51 | 988124201E1ED79200C3007C /* Frameworks */ = { 52 | isa = PBXFrameworksBuildPhase; 53 | buildActionMask = 2147483647; 54 | files = ( 55 | ); 56 | runOnlyForDeploymentPostprocessing = 0; 57 | }; 58 | 988124311E1ED79200C3007C /* Frameworks */ = { 59 | isa = PBXFrameworksBuildPhase; 60 | buildActionMask = 2147483647; 61 | files = ( 62 | ); 63 | runOnlyForDeploymentPostprocessing = 0; 64 | }; 65 | 9881243C1E1ED79200C3007C /* Frameworks */ = { 66 | isa = PBXFrameworksBuildPhase; 67 | buildActionMask = 2147483647; 68 | files = ( 69 | ); 70 | runOnlyForDeploymentPostprocessing = 0; 71 | }; 72 | /* End PBXFrameworksBuildPhase section */ 73 | 74 | /* Begin PBXGroup section */ 75 | 9881241A1E1ED79200C3007C = { 76 | isa = PBXGroup; 77 | children = ( 78 | 988124251E1ED79200C3007C /* AccessCamera */, 79 | 988124371E1ED79200C3007C /* AccessCameraTests */, 80 | 988124421E1ED79200C3007C /* AccessCameraUITests */, 81 | 988124241E1ED79200C3007C /* Products */, 82 | ); 83 | sourceTree = ""; 84 | }; 85 | 988124241E1ED79200C3007C /* Products */ = { 86 | isa = PBXGroup; 87 | children = ( 88 | 988124231E1ED79200C3007C /* AccessCamera.app */, 89 | 988124341E1ED79200C3007C /* AccessCameraTests.xctest */, 90 | 9881243F1E1ED79200C3007C /* AccessCameraUITests.xctest */, 91 | ); 92 | name = Products; 93 | sourceTree = ""; 94 | }; 95 | 988124251E1ED79200C3007C /* AccessCamera */ = { 96 | isa = PBXGroup; 97 | children = ( 98 | 988124261E1ED79200C3007C /* AppDelegate.swift */, 99 | 988124281E1ED79200C3007C /* ViewController.swift */, 100 | 9881242A1E1ED79200C3007C /* Assets.xcassets */, 101 | 9881242C1E1ED79200C3007C /* Main.storyboard */, 102 | 9881242F1E1ED79200C3007C /* Info.plist */, 103 | ); 104 | path = AccessCamera; 105 | sourceTree = ""; 106 | }; 107 | 988124371E1ED79200C3007C /* AccessCameraTests */ = { 108 | isa = PBXGroup; 109 | children = ( 110 | 988124381E1ED79200C3007C /* AccessCameraTests.swift */, 111 | 9881243A1E1ED79200C3007C /* Info.plist */, 112 | ); 113 | path = AccessCameraTests; 114 | sourceTree = ""; 115 | }; 116 | 988124421E1ED79200C3007C /* AccessCameraUITests */ = { 117 | isa = PBXGroup; 118 | children = ( 119 | 988124431E1ED79200C3007C /* AccessCameraUITests.swift */, 120 | 988124451E1ED79200C3007C /* Info.plist */, 121 | ); 122 | path = AccessCameraUITests; 123 | sourceTree = ""; 124 | }; 125 | /* End PBXGroup section */ 126 | 127 | /* Begin PBXNativeTarget section */ 128 | 988124221E1ED79200C3007C /* AccessCamera */ = { 129 | isa = PBXNativeTarget; 130 | buildConfigurationList = 988124481E1ED79200C3007C /* Build configuration list for PBXNativeTarget "AccessCamera" */; 131 | buildPhases = ( 132 | 9881241F1E1ED79200C3007C /* Sources */, 133 | 988124201E1ED79200C3007C /* Frameworks */, 134 | 988124211E1ED79200C3007C /* Resources */, 135 | ); 136 | buildRules = ( 137 | ); 138 | dependencies = ( 139 | ); 140 | name = AccessCamera; 141 | productName = AccessCamera; 142 | productReference = 988124231E1ED79200C3007C /* AccessCamera.app */; 143 | productType = "com.apple.product-type.application"; 144 | }; 145 | 988124331E1ED79200C3007C /* AccessCameraTests */ = { 146 | isa = PBXNativeTarget; 147 | buildConfigurationList = 9881244B1E1ED79200C3007C /* Build configuration list for PBXNativeTarget "AccessCameraTests" */; 148 | buildPhases = ( 149 | 988124301E1ED79200C3007C /* Sources */, 150 | 988124311E1ED79200C3007C /* Frameworks */, 151 | 988124321E1ED79200C3007C /* Resources */, 152 | ); 153 | buildRules = ( 154 | ); 155 | dependencies = ( 156 | 988124361E1ED79200C3007C /* PBXTargetDependency */, 157 | ); 158 | name = AccessCameraTests; 159 | productName = AccessCameraTests; 160 | productReference = 988124341E1ED79200C3007C /* AccessCameraTests.xctest */; 161 | productType = "com.apple.product-type.bundle.unit-test"; 162 | }; 163 | 9881243E1E1ED79200C3007C /* AccessCameraUITests */ = { 164 | isa = PBXNativeTarget; 165 | buildConfigurationList = 9881244E1E1ED79200C3007C /* Build configuration list for PBXNativeTarget "AccessCameraUITests" */; 166 | buildPhases = ( 167 | 9881243B1E1ED79200C3007C /* Sources */, 168 | 9881243C1E1ED79200C3007C /* Frameworks */, 169 | 9881243D1E1ED79200C3007C /* Resources */, 170 | ); 171 | buildRules = ( 172 | ); 173 | dependencies = ( 174 | 988124411E1ED79200C3007C /* PBXTargetDependency */, 175 | ); 176 | name = AccessCameraUITests; 177 | productName = AccessCameraUITests; 178 | productReference = 9881243F1E1ED79200C3007C /* AccessCameraUITests.xctest */; 179 | productType = "com.apple.product-type.bundle.ui-testing"; 180 | }; 181 | /* End PBXNativeTarget section */ 182 | 183 | /* Begin PBXProject section */ 184 | 9881241B1E1ED79200C3007C /* Project object */ = { 185 | isa = PBXProject; 186 | attributes = { 187 | LastSwiftUpdateCheck = 0820; 188 | LastUpgradeCheck = 0820; 189 | ORGANIZATIONNAME = Sanity; 190 | TargetAttributes = { 191 | 988124221E1ED79200C3007C = { 192 | CreatedOnToolsVersion = 8.2.1; 193 | DevelopmentTeam = 4FZS82EHM8; 194 | ProvisioningStyle = Automatic; 195 | }; 196 | 988124331E1ED79200C3007C = { 197 | CreatedOnToolsVersion = 8.2.1; 198 | DevelopmentTeam = 4FZS82EHM8; 199 | ProvisioningStyle = Automatic; 200 | TestTargetID = 988124221E1ED79200C3007C; 201 | }; 202 | 9881243E1E1ED79200C3007C = { 203 | CreatedOnToolsVersion = 8.2.1; 204 | DevelopmentTeam = 4FZS82EHM8; 205 | ProvisioningStyle = Automatic; 206 | TestTargetID = 988124221E1ED79200C3007C; 207 | }; 208 | }; 209 | }; 210 | buildConfigurationList = 9881241E1E1ED79200C3007C /* Build configuration list for PBXProject "AccessCamera" */; 211 | compatibilityVersion = "Xcode 3.2"; 212 | developmentRegion = English; 213 | hasScannedForEncodings = 0; 214 | knownRegions = ( 215 | en, 216 | Base, 217 | ); 218 | mainGroup = 9881241A1E1ED79200C3007C; 219 | productRefGroup = 988124241E1ED79200C3007C /* Products */; 220 | projectDirPath = ""; 221 | projectRoot = ""; 222 | targets = ( 223 | 988124221E1ED79200C3007C /* AccessCamera */, 224 | 988124331E1ED79200C3007C /* AccessCameraTests */, 225 | 9881243E1E1ED79200C3007C /* AccessCameraUITests */, 226 | ); 227 | }; 228 | /* End PBXProject section */ 229 | 230 | /* Begin PBXResourcesBuildPhase section */ 231 | 988124211E1ED79200C3007C /* Resources */ = { 232 | isa = PBXResourcesBuildPhase; 233 | buildActionMask = 2147483647; 234 | files = ( 235 | 9881242B1E1ED79200C3007C /* Assets.xcassets in Resources */, 236 | 9881242E1E1ED79200C3007C /* Main.storyboard in Resources */, 237 | ); 238 | runOnlyForDeploymentPostprocessing = 0; 239 | }; 240 | 988124321E1ED79200C3007C /* Resources */ = { 241 | isa = PBXResourcesBuildPhase; 242 | buildActionMask = 2147483647; 243 | files = ( 244 | ); 245 | runOnlyForDeploymentPostprocessing = 0; 246 | }; 247 | 9881243D1E1ED79200C3007C /* Resources */ = { 248 | isa = PBXResourcesBuildPhase; 249 | buildActionMask = 2147483647; 250 | files = ( 251 | ); 252 | runOnlyForDeploymentPostprocessing = 0; 253 | }; 254 | /* End PBXResourcesBuildPhase section */ 255 | 256 | /* Begin PBXSourcesBuildPhase section */ 257 | 9881241F1E1ED79200C3007C /* Sources */ = { 258 | isa = PBXSourcesBuildPhase; 259 | buildActionMask = 2147483647; 260 | files = ( 261 | 988124291E1ED79200C3007C /* ViewController.swift in Sources */, 262 | 988124271E1ED79200C3007C /* AppDelegate.swift in Sources */, 263 | ); 264 | runOnlyForDeploymentPostprocessing = 0; 265 | }; 266 | 988124301E1ED79200C3007C /* Sources */ = { 267 | isa = PBXSourcesBuildPhase; 268 | buildActionMask = 2147483647; 269 | files = ( 270 | 988124391E1ED79200C3007C /* AccessCameraTests.swift in Sources */, 271 | ); 272 | runOnlyForDeploymentPostprocessing = 0; 273 | }; 274 | 9881243B1E1ED79200C3007C /* Sources */ = { 275 | isa = PBXSourcesBuildPhase; 276 | buildActionMask = 2147483647; 277 | files = ( 278 | 988124441E1ED79200C3007C /* AccessCameraUITests.swift in Sources */, 279 | ); 280 | runOnlyForDeploymentPostprocessing = 0; 281 | }; 282 | /* End PBXSourcesBuildPhase section */ 283 | 284 | /* Begin PBXTargetDependency section */ 285 | 988124361E1ED79200C3007C /* PBXTargetDependency */ = { 286 | isa = PBXTargetDependency; 287 | target = 988124221E1ED79200C3007C /* AccessCamera */; 288 | targetProxy = 988124351E1ED79200C3007C /* PBXContainerItemProxy */; 289 | }; 290 | 988124411E1ED79200C3007C /* PBXTargetDependency */ = { 291 | isa = PBXTargetDependency; 292 | target = 988124221E1ED79200C3007C /* AccessCamera */; 293 | targetProxy = 988124401E1ED79200C3007C /* PBXContainerItemProxy */; 294 | }; 295 | /* End PBXTargetDependency section */ 296 | 297 | /* Begin PBXVariantGroup section */ 298 | 9881242C1E1ED79200C3007C /* Main.storyboard */ = { 299 | isa = PBXVariantGroup; 300 | children = ( 301 | 9881242D1E1ED79200C3007C /* Base */, 302 | ); 303 | name = Main.storyboard; 304 | sourceTree = ""; 305 | }; 306 | /* End PBXVariantGroup section */ 307 | 308 | /* Begin XCBuildConfiguration section */ 309 | 988124461E1ED79200C3007C /* Debug */ = { 310 | isa = XCBuildConfiguration; 311 | buildSettings = { 312 | ALWAYS_SEARCH_USER_PATHS = NO; 313 | CLANG_ANALYZER_NONNULL = YES; 314 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 315 | CLANG_CXX_LIBRARY = "libc++"; 316 | CLANG_ENABLE_MODULES = YES; 317 | CLANG_ENABLE_OBJC_ARC = YES; 318 | CLANG_WARN_BOOL_CONVERSION = YES; 319 | CLANG_WARN_CONSTANT_CONVERSION = YES; 320 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 321 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 322 | CLANG_WARN_EMPTY_BODY = YES; 323 | CLANG_WARN_ENUM_CONVERSION = YES; 324 | CLANG_WARN_INFINITE_RECURSION = YES; 325 | CLANG_WARN_INT_CONVERSION = YES; 326 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 327 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 328 | CLANG_WARN_UNREACHABLE_CODE = YES; 329 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 330 | CODE_SIGN_IDENTITY = "-"; 331 | COPY_PHASE_STRIP = NO; 332 | DEBUG_INFORMATION_FORMAT = dwarf; 333 | ENABLE_STRICT_OBJC_MSGSEND = YES; 334 | ENABLE_TESTABILITY = YES; 335 | GCC_C_LANGUAGE_STANDARD = gnu99; 336 | GCC_DYNAMIC_NO_PIC = NO; 337 | GCC_NO_COMMON_BLOCKS = YES; 338 | GCC_OPTIMIZATION_LEVEL = 0; 339 | GCC_PREPROCESSOR_DEFINITIONS = ( 340 | "DEBUG=1", 341 | "$(inherited)", 342 | ); 343 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 344 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 345 | GCC_WARN_UNDECLARED_SELECTOR = YES; 346 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 347 | GCC_WARN_UNUSED_FUNCTION = YES; 348 | GCC_WARN_UNUSED_VARIABLE = YES; 349 | MACOSX_DEPLOYMENT_TARGET = 10.12; 350 | MTL_ENABLE_DEBUG_INFO = YES; 351 | ONLY_ACTIVE_ARCH = YES; 352 | SDKROOT = macosx; 353 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 354 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 355 | }; 356 | name = Debug; 357 | }; 358 | 988124471E1ED79200C3007C /* Release */ = { 359 | isa = XCBuildConfiguration; 360 | buildSettings = { 361 | ALWAYS_SEARCH_USER_PATHS = NO; 362 | CLANG_ANALYZER_NONNULL = YES; 363 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 364 | CLANG_CXX_LIBRARY = "libc++"; 365 | CLANG_ENABLE_MODULES = YES; 366 | CLANG_ENABLE_OBJC_ARC = YES; 367 | CLANG_WARN_BOOL_CONVERSION = YES; 368 | CLANG_WARN_CONSTANT_CONVERSION = YES; 369 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 370 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 371 | CLANG_WARN_EMPTY_BODY = YES; 372 | CLANG_WARN_ENUM_CONVERSION = YES; 373 | CLANG_WARN_INFINITE_RECURSION = YES; 374 | CLANG_WARN_INT_CONVERSION = YES; 375 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 376 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 377 | CLANG_WARN_UNREACHABLE_CODE = YES; 378 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 379 | CODE_SIGN_IDENTITY = "-"; 380 | COPY_PHASE_STRIP = NO; 381 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 382 | ENABLE_NS_ASSERTIONS = NO; 383 | ENABLE_STRICT_OBJC_MSGSEND = YES; 384 | GCC_C_LANGUAGE_STANDARD = gnu99; 385 | GCC_NO_COMMON_BLOCKS = YES; 386 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 387 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 388 | GCC_WARN_UNDECLARED_SELECTOR = YES; 389 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 390 | GCC_WARN_UNUSED_FUNCTION = YES; 391 | GCC_WARN_UNUSED_VARIABLE = YES; 392 | MACOSX_DEPLOYMENT_TARGET = 10.12; 393 | MTL_ENABLE_DEBUG_INFO = NO; 394 | SDKROOT = macosx; 395 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 396 | }; 397 | name = Release; 398 | }; 399 | 988124491E1ED79200C3007C /* Debug */ = { 400 | isa = XCBuildConfiguration; 401 | buildSettings = { 402 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 403 | COMBINE_HIDPI_IMAGES = YES; 404 | DEVELOPMENT_TEAM = 4FZS82EHM8; 405 | INFOPLIST_FILE = AccessCamera/Info.plist; 406 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks"; 407 | PRODUCT_BUNDLE_IDENTIFIER = sanity.in.just.AccessCamera; 408 | PRODUCT_NAME = "$(TARGET_NAME)"; 409 | SWIFT_VERSION = 3.0; 410 | }; 411 | name = Debug; 412 | }; 413 | 9881244A1E1ED79200C3007C /* Release */ = { 414 | isa = XCBuildConfiguration; 415 | buildSettings = { 416 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 417 | COMBINE_HIDPI_IMAGES = YES; 418 | DEVELOPMENT_TEAM = 4FZS82EHM8; 419 | INFOPLIST_FILE = AccessCamera/Info.plist; 420 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks"; 421 | PRODUCT_BUNDLE_IDENTIFIER = sanity.in.just.AccessCamera; 422 | PRODUCT_NAME = "$(TARGET_NAME)"; 423 | SWIFT_VERSION = 3.0; 424 | }; 425 | name = Release; 426 | }; 427 | 9881244C1E1ED79200C3007C /* Debug */ = { 428 | isa = XCBuildConfiguration; 429 | buildSettings = { 430 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 431 | BUNDLE_LOADER = "$(TEST_HOST)"; 432 | COMBINE_HIDPI_IMAGES = YES; 433 | DEVELOPMENT_TEAM = 4FZS82EHM8; 434 | INFOPLIST_FILE = AccessCameraTests/Info.plist; 435 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks"; 436 | PRODUCT_BUNDLE_IDENTIFIER = sanity.in.just.AccessCameraTests; 437 | PRODUCT_NAME = "$(TARGET_NAME)"; 438 | SWIFT_VERSION = 3.0; 439 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/AccessCamera.app/Contents/MacOS/AccessCamera"; 440 | }; 441 | name = Debug; 442 | }; 443 | 9881244D1E1ED79200C3007C /* Release */ = { 444 | isa = XCBuildConfiguration; 445 | buildSettings = { 446 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 447 | BUNDLE_LOADER = "$(TEST_HOST)"; 448 | COMBINE_HIDPI_IMAGES = YES; 449 | DEVELOPMENT_TEAM = 4FZS82EHM8; 450 | INFOPLIST_FILE = AccessCameraTests/Info.plist; 451 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks"; 452 | PRODUCT_BUNDLE_IDENTIFIER = sanity.in.just.AccessCameraTests; 453 | PRODUCT_NAME = "$(TARGET_NAME)"; 454 | SWIFT_VERSION = 3.0; 455 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/AccessCamera.app/Contents/MacOS/AccessCamera"; 456 | }; 457 | name = Release; 458 | }; 459 | 9881244F1E1ED79200C3007C /* Debug */ = { 460 | isa = XCBuildConfiguration; 461 | buildSettings = { 462 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 463 | COMBINE_HIDPI_IMAGES = YES; 464 | DEVELOPMENT_TEAM = 4FZS82EHM8; 465 | INFOPLIST_FILE = AccessCameraUITests/Info.plist; 466 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks"; 467 | PRODUCT_BUNDLE_IDENTIFIER = sanity.in.just.AccessCameraUITests; 468 | PRODUCT_NAME = "$(TARGET_NAME)"; 469 | SWIFT_VERSION = 3.0; 470 | TEST_TARGET_NAME = AccessCamera; 471 | }; 472 | name = Debug; 473 | }; 474 | 988124501E1ED79200C3007C /* Release */ = { 475 | isa = XCBuildConfiguration; 476 | buildSettings = { 477 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 478 | COMBINE_HIDPI_IMAGES = YES; 479 | DEVELOPMENT_TEAM = 4FZS82EHM8; 480 | INFOPLIST_FILE = AccessCameraUITests/Info.plist; 481 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks"; 482 | PRODUCT_BUNDLE_IDENTIFIER = sanity.in.just.AccessCameraUITests; 483 | PRODUCT_NAME = "$(TARGET_NAME)"; 484 | SWIFT_VERSION = 3.0; 485 | TEST_TARGET_NAME = AccessCamera; 486 | }; 487 | name = Release; 488 | }; 489 | /* End XCBuildConfiguration section */ 490 | 491 | /* Begin XCConfigurationList section */ 492 | 9881241E1E1ED79200C3007C /* Build configuration list for PBXProject "AccessCamera" */ = { 493 | isa = XCConfigurationList; 494 | buildConfigurations = ( 495 | 988124461E1ED79200C3007C /* Debug */, 496 | 988124471E1ED79200C3007C /* Release */, 497 | ); 498 | defaultConfigurationIsVisible = 0; 499 | defaultConfigurationName = Release; 500 | }; 501 | 988124481E1ED79200C3007C /* Build configuration list for PBXNativeTarget "AccessCamera" */ = { 502 | isa = XCConfigurationList; 503 | buildConfigurations = ( 504 | 988124491E1ED79200C3007C /* Debug */, 505 | 9881244A1E1ED79200C3007C /* Release */, 506 | ); 507 | defaultConfigurationIsVisible = 0; 508 | }; 509 | 9881244B1E1ED79200C3007C /* Build configuration list for PBXNativeTarget "AccessCameraTests" */ = { 510 | isa = XCConfigurationList; 511 | buildConfigurations = ( 512 | 9881244C1E1ED79200C3007C /* Debug */, 513 | 9881244D1E1ED79200C3007C /* Release */, 514 | ); 515 | defaultConfigurationIsVisible = 0; 516 | }; 517 | 9881244E1E1ED79200C3007C /* Build configuration list for PBXNativeTarget "AccessCameraUITests" */ = { 518 | isa = XCConfigurationList; 519 | buildConfigurations = ( 520 | 9881244F1E1ED79200C3007C /* Debug */, 521 | 988124501E1ED79200C3007C /* Release */, 522 | ); 523 | defaultConfigurationIsVisible = 0; 524 | }; 525 | /* End XCConfigurationList section */ 526 | }; 527 | rootObject = 9881241B1E1ED79200C3007C /* Project object */; 528 | } 529 | -------------------------------------------------------------------------------- /AccessCamera.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /AccessCamera.xcodeproj/xcuserdata/veck.xcuserdatad/xcschemes/AccessCamera.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 33 | 39 | 40 | 41 | 43 | 49 | 50 | 51 | 52 | 53 | 59 | 60 | 61 | 62 | 63 | 64 | 74 | 76 | 82 | 83 | 84 | 85 | 86 | 87 | 93 | 95 | 101 | 102 | 103 | 104 | 106 | 107 | 110 | 111 | 112 | -------------------------------------------------------------------------------- /AccessCamera.xcodeproj/xcuserdata/veck.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | AccessCamera.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | 988124221E1ED79200C3007C 16 | 17 | primary 18 | 19 | 20 | 988124331E1ED79200C3007C 21 | 22 | primary 23 | 24 | 25 | 9881243E1E1ED79200C3007C 26 | 27 | primary 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /AccessCamera/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // AccessCamera 4 | // 5 | // Created by Veck on 2017/1/6. 6 | // Copyright © 2017年 Sanity. All rights reserved. 7 | // 8 | 9 | import Cocoa 10 | 11 | @NSApplicationMain 12 | class AppDelegate: NSObject, NSApplicationDelegate { 13 | 14 | 15 | 16 | func applicationDidFinishLaunching(_ aNotification: Notification) { 17 | // Insert code here to initialize your application 18 | } 19 | 20 | func applicationWillTerminate(_ aNotification: Notification) { 21 | // Insert code here to tear down your application 22 | } 23 | 24 | 25 | } 26 | 27 | -------------------------------------------------------------------------------- /AccessCamera/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "mac", 5 | "size" : "16x16", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "mac", 10 | "size" : "16x16", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "mac", 15 | "size" : "32x32", 16 | "scale" : "1x" 17 | }, 18 | { 19 | "idiom" : "mac", 20 | "size" : "32x32", 21 | "scale" : "2x" 22 | }, 23 | { 24 | "idiom" : "mac", 25 | "size" : "128x128", 26 | "scale" : "1x" 27 | }, 28 | { 29 | "idiom" : "mac", 30 | "size" : "128x128", 31 | "scale" : "2x" 32 | }, 33 | { 34 | "idiom" : "mac", 35 | "size" : "256x256", 36 | "scale" : "1x" 37 | }, 38 | { 39 | "idiom" : "mac", 40 | "size" : "256x256", 41 | "scale" : "2x" 42 | }, 43 | { 44 | "idiom" : "mac", 45 | "size" : "512x512", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "mac", 50 | "size" : "512x512", 51 | "scale" : "2x" 52 | } 53 | ], 54 | "info" : { 55 | "version" : 1, 56 | "author" : "xcode" 57 | } 58 | } -------------------------------------------------------------------------------- /AccessCamera/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | 274 | 275 | 276 | 277 | 278 | 279 | 280 | 281 | 282 | 283 | 284 | 285 | 286 | 287 | 288 | 289 | 290 | 291 | 292 | 293 | 294 | 295 | 296 | 297 | 298 | 299 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 309 | 310 | 311 | 312 | 313 | 314 | 315 | 316 | 317 | 318 | 319 | 320 | 321 | 322 | 323 | 324 | 325 | 326 | 327 | 328 | 329 | 330 | 331 | 332 | 333 | 334 | 335 | 336 | 337 | 338 | 339 | 340 | 341 | 342 | 343 | 344 | 345 | 346 | 347 | 348 | 349 | 350 | 351 | 352 | 353 | 354 | 355 | 356 | 357 | 358 | 359 | 360 | 361 | 362 | 363 | 364 | 365 | 366 | 367 | 368 | 369 | 370 | 371 | 372 | 373 | 374 | 375 | 376 | 377 | 378 | 379 | 380 | 381 | 382 | 383 | 384 | 385 | 386 | 387 | 388 | 389 | 390 | 391 | 392 | 393 | 394 | 395 | 396 | 397 | 398 | 399 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 427 | 428 | 429 | 430 | 431 | 432 | 433 | 434 | 435 | 436 | 437 | 438 | 439 | 440 | 441 | 442 | 443 | 444 | 445 | 446 | 447 | 448 | 449 | 450 | 451 | 452 | 453 | 454 | 455 | 456 | 457 | 458 | 459 | 460 | 461 | 462 | 463 | 464 | 465 | 466 | 467 | 468 | 469 | 470 | 471 | 472 | 473 | 474 | 475 | 476 | 477 | 478 | 479 | 480 | 481 | 482 | 483 | 484 | 485 | 486 | 487 | 488 | 489 | 490 | 491 | 492 | 493 | 494 | 495 | 496 | 497 | 498 | 499 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 509 | 510 | Default 511 | 512 | 513 | 514 | 515 | 516 | 517 | Left to Right 518 | 519 | 520 | 521 | 522 | 523 | 524 | Right to Left 525 | 526 | 527 | 528 | 529 | 530 | 531 | 532 | 533 | 534 | 535 | Default 536 | 537 | 538 | 539 | 540 | 541 | 542 | Left to Right 543 | 544 | 545 | 546 | 547 | 548 | 549 | Right to Left 550 | 551 | 552 | 553 | 554 | 555 | 556 | 557 | 558 | 559 | 560 | 561 | 562 | 563 | 564 | 565 | 566 | 567 | 568 | 569 | 570 | 571 | 572 | 573 | 574 | 575 | 576 | 577 | 578 | 579 | 580 | 581 | 582 | 583 | 584 | 585 | 586 | 587 | 588 | 589 | 590 | 591 | 592 | 593 | 594 | 595 | 596 | 597 | 598 | 599 | 600 | 601 | 602 | 603 | 604 | 605 | 606 | 607 | 608 | 609 | 610 | 611 | 612 | 613 | 614 | 615 | 616 | 617 | 618 | 619 | 620 | 621 | 622 | 623 | 624 | 625 | 626 | 627 | 628 | 629 | 630 | 631 | 632 | 633 | 634 | 635 | 636 | 637 | 638 | 639 | 640 | 641 | 642 | 643 | 644 | 645 | 646 | 647 | 648 | 649 | 650 | 651 | 652 | 653 | 654 | 655 | 656 | 657 | 658 | 659 | 660 | 661 | 662 | 663 | 664 | 665 | 666 | 667 | 668 | 669 | 670 | 671 | 672 | 673 | 674 | 675 | 676 | 677 | 678 | 679 | 680 | 681 | 682 | 683 | 684 | 685 | 686 | 687 | 688 | 689 | 690 | 691 | 692 | 693 | 694 | 695 | 696 | 697 | 698 | 699 | 700 | 701 | 702 | 703 | 704 | 705 | -------------------------------------------------------------------------------- /AccessCamera/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIconFile 10 | 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleVersion 22 | 1 23 | LSMinimumSystemVersion 24 | $(MACOSX_DEPLOYMENT_TARGET) 25 | NSHumanReadableCopyright 26 | Copyright © 2017年 Sanity. All rights reserved. 27 | NSMainStoryboardFile 28 | Main 29 | NSPrincipalClass 30 | NSApplication 31 | 32 | 33 | -------------------------------------------------------------------------------- /AccessCamera/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // openCamera 4 | // 5 | // Created by Veck on 2017/1/5. 6 | // Copyright © 2017年 Sanity. All rights reserved. 7 | // 8 | 9 | import Cocoa 10 | import AVFoundation 11 | 12 | class ViewController: NSViewController { 13 | 14 | @IBOutlet weak var camera: NSView! 15 | 16 | let captureSession = AVCaptureSession() 17 | var captureDevice : AVCaptureDevice? 18 | var previewLayer : AVCaptureVideoPreviewLayer? 19 | 20 | override func viewDidLoad() { 21 | super.viewDidLoad() 22 | 23 | camera.layer = CALayer() 24 | 25 | 26 | // Do any additional setup after loading the view, typically from a nib. 27 | captureSession.sessionPreset = AVCaptureSessionPresetLow 28 | 29 | // Get all audio and video devices on this machine 30 | let devices = AVCaptureDevice.devices() 31 | 32 | // Find the FaceTime HD camera object 33 | for device in devices! { 34 | print(device) 35 | 36 | // Camera object found and assign it to captureDevice 37 | if ((device as AnyObject).hasMediaType(AVMediaTypeVideo)) { 38 | print(device) 39 | captureDevice = device as? AVCaptureDevice 40 | } 41 | } 42 | 43 | 44 | if captureDevice != nil { 45 | 46 | do { 47 | 48 | try captureSession.addInput(AVCaptureDeviceInput(device: captureDevice)) 49 | previewLayer = AVCaptureVideoPreviewLayer(session: captureSession) 50 | previewLayer?.frame = (self.camera.layer?.frame)! 51 | 52 | // Add previewLayer into custom view 53 | self.camera.layer?.addSublayer(previewLayer!) 54 | 55 | // Start camera 56 | captureSession.startRunning() 57 | 58 | } catch { 59 | print(AVCaptureSessionErrorKey.description) 60 | } 61 | } 62 | 63 | 64 | } 65 | 66 | override var representedObject: Any? { 67 | didSet { 68 | // Update the view, if already loaded. 69 | } 70 | } 71 | 72 | 73 | } 74 | 75 | -------------------------------------------------------------------------------- /AccessCameraTests/AccessCameraTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AccessCameraTests.swift 3 | // AccessCameraTests 4 | // 5 | // Created by Veck on 2017/1/6. 6 | // Copyright © 2017年 Sanity. All rights reserved. 7 | // 8 | 9 | import XCTest 10 | @testable import AccessCamera 11 | 12 | class AccessCameraTests: XCTestCase { 13 | 14 | override func setUp() { 15 | super.setUp() 16 | // Put setup code here. This method is called before the invocation of each test method in the class. 17 | } 18 | 19 | override func tearDown() { 20 | // Put teardown code here. This method is called after the invocation of each test method in the class. 21 | super.tearDown() 22 | } 23 | 24 | func testExample() { 25 | // This is an example of a functional test case. 26 | // Use XCTAssert and related functions to verify your tests produce the correct results. 27 | } 28 | 29 | func testPerformanceExample() { 30 | // This is an example of a performance test case. 31 | self.measure { 32 | // Put the code you want to measure the time of here. 33 | } 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /AccessCameraTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /AccessCameraUITests/AccessCameraUITests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AccessCameraUITests.swift 3 | // AccessCameraUITests 4 | // 5 | // Created by Veck on 2017/1/6. 6 | // Copyright © 2017年 Sanity. All rights reserved. 7 | // 8 | 9 | import XCTest 10 | 11 | class AccessCameraUITests: XCTestCase { 12 | 13 | override func setUp() { 14 | super.setUp() 15 | 16 | // Put setup code here. This method is called before the invocation of each test method in the class. 17 | 18 | // In UI tests it is usually best to stop immediately when a failure occurs. 19 | continueAfterFailure = false 20 | // UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method. 21 | XCUIApplication().launch() 22 | 23 | // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this. 24 | } 25 | 26 | override func tearDown() { 27 | // Put teardown code here. This method is called after the invocation of each test method in the class. 28 | super.tearDown() 29 | } 30 | 31 | func testExample() { 32 | // Use recording to get started writing UI tests. 33 | // Use XCTAssert and related functions to verify your tests produce the correct results. 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /AccessCameraUITests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | This is a demo of accessing FaceTime HD camera of MacBook. 3 | 4 | Since most tutorials and solutions are focusing on iOS implementation, this demo is made for macOS(OS X) Cocoa Application and was written in Swift. The input video stream will be displayed on the custom view in window controller. 5 | 6 | 7 | ![](demo.png) 8 | 9 | ## Environment 10 | 11 | * MacBook Pro 12 | * Swift version 3.0.2 13 | * XCode Version 8.2.1 14 | * macOS Sierra Version 10.12.2 15 | 16 | ## Not in this project 17 | 18 | * Audio capture 19 | * Image capture -------------------------------------------------------------------------------- /demo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fbukevin/AccessCamera/9b3efd0c3c5c71b8c5a9dc91a0b158c761fa70fd/demo.png --------------------------------------------------------------------------------