CAD Target Training
General information about CAD Target tracking can be found here.
Preparation
The following requirements need to be matched in order to train a CAD model:
- The model should be provided in the .obj (Wavefront) file format
- Constraints on the model:
- The model must be a manifold:
- All surfaces need to be connected
- No self-intersections
- The vertex normals need to face toward the outside of the model
- The object model should contain less than
20.000faces - The origin of the model should be at the centroid of the object
- The model must be a manifold:
The input file doesn't need to have a texture for the model; if it does have a texture, it is ignored (CAD targets are textureless). The physical size and orientation of the model will be inferred from the input file itself; the units of the coordinates in the model are interpreted as meters and must be scaled between 1mm (0.0001m) and 1km (1000.0m) for optimal results.
CAD target training
TRACK-Trainer-Native cad --help
Usage: cad [-h] --name VAR [--output VAR] --path VAR
performs cad target training
Optional arguments:
-h, --help shows help message and exits
-v, --version prints version information and exits
--name name of the trained target [required]
--output path where to save the trained target [default: "./"]
--path path to the 3D file [required]
TRACK-Trainer-Native.exe cad --name CADTarget --path .\CAD.obj --output .\CADTarget
Copyright (C) 2023 VIRNECT CO., LTD.
All rights reserved.
The following parameters can be set for CAD target training:
nameName of the target following the naming convention mentioned here.outputPath to the folder where the trained .track file will be saved.pathPath and filename of the input .obj file.