Page 1 of 1

Canupo CLI is not classifying or saving the SF?

Posted: Fri Oct 18, 2024 1:32 pm
by SamplePop
Hi,

I am trying to use the CLI in CC to loop over 90 .laz files and classify them with CANUPO. Everything seems to work, the .laz files are saved, they have less kbs than the originals, but there are no classifications added. The original classes are what is found on the classified .laz. When I open it up in CC / lidR I cant find any new scalar fields added or the classifications changed.

Here is my powershell script that I am running.

# Set the path to CloudCompare executable
$CC_PATH = "C:\Program Files\CloudCompare\CloudCompare.exe"

# Define the directories to loop through
$directories = @(
"G:\dir\to\Group1",
"G:\dir\to\Group2",
"G:\dir\to\Group3"
)

# Define the output directory for the classified files
$output_base_dir = "G:\dir\to\vegetation_classified"

# Define the path to the CANUPO classifier
$classifier_path = "C:\Desktop\CloudCompare\otira_vegetsuper.prm"

# Loop through each directory
foreach ($dir in $directories) {
# Get all .laz files in the current directory
$laz_file

Re: Canupo CLI is not classifying or saving the SF?

Posted: Sat Oct 19, 2024 6:24 am
by daniel
Hi,

I don't see the call to CC in your script?

And an obvious question, but I'll ask it just in case: does it work with the GUI version with the same files?