Updated on 2022-02-22 GMT+08:00

(Optional) Encrypting a Model

HiLens Kit cameras support model encryption. After a model is encrypted, you can call the model using only the HiLens Framework API.

Encrypting a Model

Download the encryption tool crypto tool, copy it to the /tmp directory of the device system, and grant the execute permission on the tool.

chmod +x crypto_tool

For details about how to use the tool, see the help information of the tool.

./crypto_tool
./crypto_tool encode --model_file plainModelfile --cipher_file cipherModelfile

model_file indicates the model file to be encrypted, and cipher_file indicates the encrypted model file.

API Calling

The API for an encrypted model is called in the same way as that for an unencrypted model. For details, see: