Skip to content

Commit

Permalink
Added functionality for detecting images and showing detailed info fo…
Browse files Browse the repository at this point in the history
…r it
  • Loading branch information
mobile-simformsolutions committed Jan 22, 2024
1 parent 2f73366 commit 859d80d
Show file tree
Hide file tree
Showing 21 changed files with 595 additions and 44 deletions.
20 changes: 20 additions & 0 deletions iOS12_Sampler/ios12 Sampler.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
objects = {

/* Begin PBXBuildFile section */
2E04C9072B4EE2F3000B4936 /* ARImageLocator.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2E04C9062B4EE2F3000B4936 /* ARImageLocator.swift */; };
2E04C9092B503318000B4936 /* StatusViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2E04C9082B503318000B4936 /* StatusViewController.swift */; };
2E04C90B2B503A6D000B4936 /* ARImageLocator+ARSessionDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2E04C90A2B503A6D000B4936 /* ARImageLocator+ARSessionDelegate.swift */; };
2E15A5982B32F720001EA792 /* RectangleDetector.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2E15A5972B32F720001EA792 /* RectangleDetector.swift */; };
2E15A59A2B32FE85001EA792 /* ARImageDetectorVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2E15A5992B32FE85001EA792 /* ARImageDetectorVC.swift */; };
2E7503282B30640100DF78E1 /* ARSurfaceDetectionVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2E7503272B30640100DF78E1 /* ARSurfaceDetectionVC.swift */; };
Expand Down Expand Up @@ -83,6 +86,9 @@
/* End PBXContainerItemProxy section */

/* Begin PBXFileReference section */
2E04C9062B4EE2F3000B4936 /* ARImageLocator.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ARImageLocator.swift; sourceTree = "<group>"; };
2E04C9082B503318000B4936 /* StatusViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StatusViewController.swift; sourceTree = "<group>"; };
2E04C90A2B503A6D000B4936 /* ARImageLocator+ARSessionDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "ARImageLocator+ARSessionDelegate.swift"; sourceTree = "<group>"; };
2E15A5972B32F720001EA792 /* RectangleDetector.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RectangleDetector.swift; sourceTree = "<group>"; };
2E15A5992B32FE85001EA792 /* ARImageDetectorVC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ARImageDetectorVC.swift; sourceTree = "<group>"; };
2E7503272B30640100DF78E1 /* ARSurfaceDetectionVC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ARSurfaceDetectionVC.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -172,6 +178,16 @@
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
2E04C9032B4EE267000B4936 /* Detecting Images in AR */ = {
isa = PBXGroup;
children = (
2E04C9062B4EE2F3000B4936 /* ARImageLocator.swift */,
2E04C9082B503318000B4936 /* StatusViewController.swift */,
2E04C90A2B503A6D000B4936 /* ARImageLocator+ARSessionDelegate.swift */,
);
path = "Detecting Images in AR";
sourceTree = "<group>";
};
2E15A5962B32F6FC001EA792 /* Utilities */ = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -324,6 +340,7 @@
4968C0E020D12FE500D384F0 /* AVReadARObjectVC.swift */,
4931C78C20D3988E002F907B /* AVTextureEnvironment.swift */,
8127E0E220D7E5B500D8CD7F /* AVImageDetaction.swift */,
2E04C9032B4EE267000B4936 /* Detecting Images in AR */,
2E75034B2B31E00400DF78E1 /* Tracking and altering images */,
2E7503222B30227F00DF78E1 /* Surface Detection */,
4968C0E720D1569C00D384F0 /* ScanningObjectHelperController */,
Expand Down Expand Up @@ -525,8 +542,10 @@
4968C0DA20D12AA700D384F0 /* ThresholdPinchGestureRecognizer.swift in Sources */,
4968C0DF20D12BF500D384F0 /* ViewController+ApplicationState.swift in Sources */,
49C5721020D269E300602C7B /* AVMainVC.swift in Sources */,
2E04C90B2B503A6D000B4936 /* ARImageLocator+ARSessionDelegate.swift in Sources */,
2E9300F62B4683DC002BF5D6 /* AlteredImage.swift in Sources */,
4904E81020D776B3002F5210 /* DetectedBoundingBox.swift in Sources */,
2E04C9072B4EE2F3000B4936 /* ARImageLocator.swift in Sources */,
4904E80E20D776B3002F5210 /* ObjectOriginAxis.swift in Sources */,
4904E7EB20D77386002F5210 /* ViewController+SessionInfo.swift in Sources */,
4968C0CB20D12AA700D384F0 /* FlashlightButton.swift in Sources */,
Expand All @@ -552,6 +571,7 @@
4904E80D20D776B3002F5210 /* DetectedPointCloud.swift in Sources */,
8127E0E620D7E60100D8CD7F /* iOSDevCenters+GIF.swift in Sources */,
4904E7F820D7767E002F5210 /* Utilities.swift in Sources */,
2E04C9092B503318000B4936 /* StatusViewController.swift in Sources */,
4904E80820D776B3002F5210 /* ScannedObject.swift in Sources */,
4968C0E320D14B1B00D384F0 /* AVScannedObjectListVC.swift in Sources */,
4904E7EE20D77386002F5210 /* Scan.swift in Sources */,
Expand Down
2 changes: 1 addition & 1 deletion iOS12_Sampler/ios12 Sampler/AVMainVC.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class AVMainVC: UIViewController, AVCaptureMetadataOutputObjectsDelegate {
}

@IBAction func btnActionWorldSharing(_ sender: Any) {
let vc = self.storyboard?.instantiateViewController(withIdentifier: "ARImageDetectorVC") as? ARImageDetectorVC
let vc = self.storyboard?.instantiateViewController(withIdentifier: "ARImageLocator") as? ARImageLocator
self.navigationController?.pushViewController(vc!, animated: true)
// let vc = self.storyboard?.instantiateViewController(withIdentifier: "ARSurfaceDetectionVC") as? ARSurfaceDetectionVC
// self.navigationController?.pushViewController(vc!, animated: true)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"info" : {
"author" : "xcode",
"version" : 1
},
"resources" : [
{
"filename" : "IMG_0060.arreferenceimage"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"images" : [
{
"filename" : "IMG_0060.HEIC",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"unit" : "inches",
"width" : 42
}
}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "merge_from_ofoct (1).jpg",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "checked.png",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 859d80d

Please sign in to comment.