Local Compute Avatar SDK  2.0.9
To generate Head 2.0 avatars
avatar_sdk_2::AvatarSdkParams Struct Reference

#include <avatar_sdk_structures.hpp>

Public Member Functions

DllExport void addHaircuts (const char *haircutsList, int size)
 Add a list of haircuts. More...
 
DllExport void addBlendshapes (const char *blendshapesList, int size)
 Add a list of blendshapes. More...
 
DllExport void addHaircuts (const char *const *const haircutArray, int size)
 (Obsolete) Add a list of haircuts More...
 
DllExport void addBlendshapes (const char *const *const blendshapesArray, int size)
 (Obsolete) Add a list of blendshapes More...
 
 AvatarSdkParams (AvatarSdkParams &other)=delete
 

Data Fields

AvatarSdkPipelineSubtype pipelineSubtype
 Type of the avatar.
 
char * inputImagePath
 Path to the photo in the PNG or JPEG format.
 
wchar_t * wInputImagePath
 Path to the photo in UTF16 encoding. Works only on Windows platform.
 
char * outputDirPath
 Directory to which the result will be written.
 
char * resourcesJson
 JSON with the list of resources that should be generated.
 
char * resourcesJsonFilePath
 Path to the resources JSON file if the resourcesJson isn't specified.
 
AvatarSdkMeshFormat outputMeshFormat
 Format in which output meshes will be saved.
 
bool saveHaircutAsPointCloud
 Save haircuts as point clouds.
 
int lodNumber
 Level of Details from 0 to 7 available for the head/mobile subtype.
 
float cartoonishLevel
 Level of the cartoon-like stylization in range [0, 1]. Applied only to the "Head 2.0 | head/mobile" pipeline.
 
AvatarSdkModelInfomodelInfo
 Computation parameters. The generated data is stored in the model.json file in the output directory.
 
AvatarModificationsavatarModifications
 Requested avatar modifications.
 
AvatarAdditionalTexturesadditionalTextures
 Additional textures (along with default one) reuqested to compute for avatar.
 
char ** haircuts = nullptr
 List of haircuts to calculate for avatar (should be initialized through addHaircuts method)
 
unsigned int haircutsNumber
 Number of haircuts in list.
 
char ** blendshapes = nullptr
 List of blendshapes to calculate for avatar (should be initialized through addBlendshapes method)
 
unsigned int blendshapesNumber
 Number of blendshapes in list.
 

Detailed Description

Parameters for avatar generation

Definition at line 208 of file avatar_sdk_structures.hpp.

Member Function Documentation

◆ addBlendshapes() [1/2]

DllExport void avatar_sdk_2::AvatarSdkParams::addBlendshapes ( const char *  blendshapesList,
int  size 
)

Add a list of blendshapes.

Parameters
blendshapesListPointer to the blendshapes names separated by the ';'
sizeNumber of characters in the list.

◆ addBlendshapes() [2/2]

DllExport void avatar_sdk_2::AvatarSdkParams::addBlendshapes ( const char *const *const  blendshapesArray,
int  size 
)

(Obsolete) Add a list of blendshapes

Parameters
blendshapesArrayArray of blendshapes names.
sizeBlendshapes array size

◆ addHaircuts() [1/2]

DllExport void avatar_sdk_2::AvatarSdkParams::addHaircuts ( const char *  haircutsList,
int  size 
)

Add a list of haircuts.

Parameters
haircutsListPointer to the haircuts names separated by the ';'
sizeNumber of characters in the list.

◆ addHaircuts() [2/2]

DllExport void avatar_sdk_2::AvatarSdkParams::addHaircuts ( const char *const *const  haircutArray,
int  size 
)

(Obsolete) Add a list of haircuts

Parameters
haircutArrayArray of haircuts names.
sizeHaircuts array size

The documentation for this struct was generated from the following file: