32 nl::json json = nl::json::object();
#define OBJECT_SERIALIZE_FIELD(json, json_field, field)
Available objects: https://core.telegram.org/bots/api#available-types.
#define OBJECT_DESERIALIZE_FIELD(json, json_field, field, default_value, optional)
Deserialize.
This object describes the position on faces where a mask should be placed by default....
float scale
Mask scaling coefficient. For example, 2.0 means double size.
void fromJson(const nl::json &json)
Deserializes this object from JSON.
MaskPosition(const nl::json &json)
nl::json toJson() const
Serializes this object to JSON.
float xShift
Shift by X-axis measured in widths of the mask scaled to the face size, from left to right....
std::string point
The part of the face relative to which the mask should be placed. One of “forehead”,...
float yShift
Shift by Y-axis measured in heights of the mask scaled to the face size, from top to bottom....