Hello!
How to start "Creating a Photogrammetry Command-Line App" Where to enter the path of the folder with the photo? I am using xcode and Monterey beta2
Hello!
How to start "Creating a Photogrammetry Command-Line App" Where to enter the path of the folder with the photo? I am using xcode and Monterey beta2
Hi Dimadnk. This is perhaps a case of the blind leading the blind. I downloaded Xcode for the first time today to create photogrammetry models with the new API from Apple. As far as I understand, the sample code I reference below is used to create an executable that can be run in Terminal.
After I installed Xcode, I downloaded this sample code. Then unzipped and opened HelloPhotogrammetry.xcodeproj.
I followed the steps in this article to assign a team to the project before building an executable from the sample code.
The play button located on the left sidebar in Xcode creates a build (a whole bunch of folders), one of which contains an executable. I think I had the main.swift file open when I clicked the play button. Not sure if that makes a difference.
Once the project finished building, I navigated to Product > Show Build Finder in Folder. You can find the executable nested inside the Products folder.
Then I opened Terminal and realized I needed to run $ xcode-select --install
to install what I think are the Xcode command line tools.
I dragged and dropped the Debug folder where the executable is at into Terminal to change my directory so that I could run the executable. By typing ./HelloPhotogrammetry -h
Terminal prints what arguments are necessary and the available options. An example input I ran was ./HelloPhotogrammetry /Users/noah/Swift/object-capture/scion/source /Users/noah/Swift/object-capture/scion/scion.usdz -d full
Once you run a command, it might take a while to see the resulting usdz appear in the directory you specified.
Good luck!