Decap

3DVEM, Leica Cyclone Register 360, FARO Scene, LFM Suite, Autodesk ReCAP, Riegl RiScan Pro, Trimble RealWorks, Etc.
pierrenavarra
I have made 10-20 posts
I have made 10-20 posts
Posts: 11
Joined: Tue Mar 03, 2020 2:08 pm
4
Full Name: pierrenavarra
Company Details: Architecture
Company Position Title: none
Country: France

Re: Decap

Post by pierrenavarra »

Nop! before I redo the command, I have cleaned my OUTPUT directory....
pierrenavarra
I have made 10-20 posts
I have made 10-20 posts
Posts: 11
Joined: Tue Mar 03, 2020 2:08 pm
4
Full Name: pierrenavarra
Company Details: Architecture
Company Position Title: none
Country: France

Re: Decap

Post by pierrenavarra »

Do not understand, I do exactly the same process of this video!


youtu.be/jo_axNiC1cI

https://www.youtube.com/watch?v=jo_axNiC1cI
VXGrid
V.I.P Member
V.I.P Member
Posts: 544
Joined: Fri Feb 24, 2017 10:47 am
7
Full Name: Martin Graner
Company Details: PointCab GmbH
Company Position Title: Research and Development
Country: Germany
Linkedin Profile: No
Has thanked: 160 times
Been thanked: 175 times
Contact:

Re: Decap

Post by VXGrid »

pierrenavarra wrote: Thu Mar 05, 2020 6:00 pm Do not understand, I do exactly the same process of this video!
https://www.youtube.com/watch?v=jo_axNiC1cI
So decap exe gives me the following help:
DeCap.exe --importWithLicense <output folder> <project name> [options] --contro lFile <control file name>
Uses current Autodesk ReCap License (if available). Create an Autodesk ReCap database with the input scans specified in a control file.

options:
--minRangeClipping <min clipping>
Set the minimum for range clipping. Points located outside the clipping range are discarded.
--maxRangeClipping <max clipping>
Set the maximum for range clipping. Points located outside the clipping range are discarded.
--decimation <decimation value mm>
Set the decimation value which is used to reduce the number of points in your project.
--unify
Enables unification of input scans into a single output scan.
--normalizeIntensity <0|1>
Turn intensity normalization on/off (off = 0, on = 1).
--currentCoordinateSystem <cs>
Coordinate system of raw data to be imported (default is no coo rdinate system)
--targetCoordinateSystem <cs>
Desired coordinate system of resulting project (defaults to cur rentCoordinateSystem if not specified)


Given that you import multiple e57 files, I guess these are with Panoramas?
If yes, I'd assume that the option --decimation is not working, since this is based on an unstructured scan.
Furthermore it is possible that you need to change your calling backslahes to normal slashes (it's a little bit strange with windows and these slashes).

Another thing that might be the issue is that by generating the project once, Autodesk logged you out from your account, so start ReCap and see if you are still in the Pro version at the top.

Good luck.
pierrenavarra
I have made 10-20 posts
I have made 10-20 posts
Posts: 11
Joined: Tue Mar 03, 2020 2:08 pm
4
Full Name: pierrenavarra
Company Details: Architecture
Company Position Title: none
Country: France

Re: Decap

Post by pierrenavarra »

Hi , Again, many thx for taking time to help me....I really appreciate.

Still not work!
Look : Here are my folders :
Image

Here is my command LIne :

Code: Select all

D:\PROGRAM FILES\Autodesk\Autodesk ReCap>decap --importWithLicense "d:\decap\scan0" scan0 "d:\decap\scan0\scan0.e57"
Here is the result :

Code: Select all

Welcome to DeCap.exe.
You have provided the following parameters:
        --importWithLicense
        d:\decap\scan0
        scan0
        d:\decap\scan0\scan0.e57
Initializing Licensing.  Please wait...
Image

I'll go crazy!!!! :o :shock:
VXGrid
V.I.P Member
V.I.P Member
Posts: 544
Joined: Fri Feb 24, 2017 10:47 am
7
Full Name: Martin Graner
Company Details: PointCab GmbH
Company Position Title: Research and Development
Country: Germany
Linkedin Profile: No
Has thanked: 160 times
Been thanked: 175 times
Contact:

Re: Decap

Post by VXGrid »

pierrenavarra wrote: Fri Mar 06, 2020 2:51 pm
Here is the result :

Code: Select all

Welcome to DeCap.exe.
You have provided the following parameters:
        --importWithLicense
        d:\decap\scan0
        scan0
        d:\decap\scan0\scan0.e57
Initializing Licensing.  Please wait...
Looks like your license is not found.
Can you start ReCap, and see if at the top there stands ReCap or ReCap Pro?
I think it is only working with the Pro?

Code: Select all

D:\PROGRAM FILES\Autodesk\Autodesk ReCap>decap --importWithLicense "d:\decap\scan0" scan0 "d:\decap\scan0\scan0.e57"
Please try the following instead:

Code: Select all

decap.exe --importWithLicense "d:/decap/scan0" "scan0_RCP" "d:/decap/scan0/scan.e57"
Might be the issue that decap doesn't like to have the same name as the e57.
Please delete the folders "temp" and "scan0 Support" prior to starting decap exe.
Rename the e57 to not have the same name as the folder it is in (remove the 0 of scan0.e57).

If I remember correctly I was not able to import multiple e57 files via command and I needed to write the txt file (but you have only one file here).
pierrenavarra
I have made 10-20 posts
I have made 10-20 posts
Posts: 11
Joined: Tue Mar 03, 2020 2:08 pm
4
Full Name: pierrenavarra
Company Details: Architecture
Company Position Title: none
Country: France

Re: Decap

Post by pierrenavarra »

Hi VXGrid

Again, thx for answering.
After multiple tests, I've founded the solution!!!! I'm glad to expose it here :

If you want to make a .rcp from list of .e57 (or other format), follow this method :
  • Download the Recap 2017 version from sign-in Autodesk
    In fact, this this the Recap 360 2016 version
    Image

    Why ? Because I tested with Recap PRO 2020, 2019, 2018, and this solution never works!
    Image
  • Create a directory and stuffs like that
    A directory containing all .e57 and a txt file containing the list of all e57 to group and index in the recap file
    Image
  • on a cmd command and run this command line
    "D:\PROGRAM FILES\Autodesk\Autodesk ReCap 360\decap.exe" --importWithLicense "d:\decap\output" scans --minRangeClipping 0 --maxRangeClipping 200 --decimation 200 --controlFile "d:\decap\list.txt"
    Decap will run ....
    Image

    After that, the result is the creation of the scans.rcp file with all e57 files indexed

    Image
Be carefull!!!!
Here are the conditions to run this process :
  • You must be connected and signed with Recap
[email protected]
I have made <0 posts
I have made <0 posts
Posts: 1
Joined: Thu Oct 24, 2019 4:58 pm
4
Full Name: R K
Company Details: Iscan3D Expertise Laser
Company Position Title: Technician
Country: Canada
Linkedin Profile: No

Re: Decap

Post by [email protected] »

Hello All

the only way I found out is to use a batch file , via the start command

tldr :
1-asks for input folder
2-asks for output folder
3-creates a full path list of files to decap (liste.txt in the same folder as this natch file)
4-starts the process with the config : --minRangeClipping 0 --maxRangeClipping 120 --normalizeIntensity 1 --decimation 1
5- stays on PAUSE after finishing (to keep cmd window open)


here is the code :

Copy/Paste batch file :

Code: Select all

@echo off
echo ----------------------------------
echo 
set /p INfolder=IMPORTATION:
echo ----------------------------------
set /p OUfolder=EXPORTATION :
echo ----------------------------------
dir "%INfolder%" /b /s > liste.txt
echo LISTE FICHIERS :
echo --
rem more liste.txt
echo --
echo ----------------------------------
@echo NOM DU FICHIER RECAP
set /p id=
echo ---------------------------------- 
C:
cd "C:\Program Files\Autodesk\Autodesk ReCap\"
Decap.exe --version
@echo %date% %time%
start "Decap" /w /affinity 8 cmd /b /c Decap.exe --importWithLicense --minRangeClipping 0 --maxRangeClipping 120 --normalizeIntensity 1 --decimation 1 "%OUfolder%" %id% --controlFile "D:\DECAP\liste.txt"
@echo %date% %time%
PAUSE
Powershell folders :

Code: Select all

@echo off
echo ----------------------------------
echo SELECTIONNEZ DOSSIER D IMPORTATION
setlocal
set "psCommand="(new-object -COM 'Shell.Application')^
.BrowseForFolder(0,'SELECTIONNEZ DOSSIER D IMPORTATION',0,0).self.path""
for /f "usebackq delims=" %%I in (`powershell %psCommand%`) do set "INfolder=%%I"
setlocal enabledelayedexpansion
echo %INfolder%
echo ----------------------------------
echo SELECTIONNEZ DOSSIER D EXPORTATION
set "psCommand="(new-object -COM 'Shell.Application')^
.BrowseForFolder(0,'SELECTIONNEZ DOSSIER D EXPORTATION',0,0).self.path""
for /f "usebackq delims=" %%I in (`powershell %psCommand%`) do set "OUfolder=%%I"
setlocal enabledelayedexpansion
@echo %OUfolder%
endlocal
echo ----------------------------------
dir "%INfolder%" /b /s > liste.txt
echo LISTE FICHIERS :
echo --
rem more liste.txt
echo --
echo ----------------------------------
@echo NOM DU FICHIER RECAP
set /p id=
echo ---------------------------------- 
C:
cd "C:\Program Files\Autodesk\Autodesk ReCap\"
Decap.exe --version
@echo %date% %time%
start "Decap" /w /affinity 8 cmd /b /c Decap.exe --importWithLicense --minRangeClipping 0 --maxRangeClipping 120 --normalizeIntensity 1 --decimation 1 "%OUfolder%" %id% --controlFile "D:\DECAP\liste.txt"
@echo %date% %time%
PAUSE

Hope this could help ,


PS : dont understand much the "/w /affinity 8" stuff , maybe we could make it better.
Last edited by [email protected] on Mon Mar 09, 2020 6:31 pm, edited 1 time in total.
boxel0
V.I.P Member
V.I.P Member
Posts: 133
Joined: Tue Sep 03, 2013 3:45 pm
10
Full Name: Lewis Boxer
Company Details: Advanced 3D Laser Solutions Ltd
Company Position Title: Technical Director
Country: UK
Linkedin Profile: Yes
Location: Essex, UK
Been thanked: 4 times
Contact:

Re: Decap

Post by boxel0 »

pierrenavarra wrote: Thu Mar 05, 2020 6:00 pm Do not understand, I do exactly the same process of this video!


youtu.be/jo_axNiC1cI

https://www.youtube.com/watch?v=jo_axNiC1cI
This was a Python Script which was built to run alongside Decap, it would auto build the files required to batch the process
Lewis Boxer
Advanced 3D Laser Solutions Ltd
Technical Director
e: [email protected]
w: www.lasersurveying.com
Post Reply

Return to “Registration Software”