软件许可证

Zivid SDK contains certain premium features which require a valid software license. This comes in the form of a license file that has been cryptographically signed and shared by Zivid. You can then unlock premium features by installing the license file, with no further required actions. For example, Barcode Detection requires a license when used through the SDK (not when used in Zivid Studio); check the documentation for a specific feature to see whether it requires one.

安装 License.yml

请通过您的 Zivid 联系人获取许可证文件。下载后,将其放置在以下目录中进行安装:

Windows
mkdir %LOCALAPPDATA%\Zivid\API
move %HOMEPATH%\Downloads\License.yml %LOCALAPPDATA%\Zivid\API\
Ubuntu
mkdir --parents "${XDG_CONFIG_HOME-$HOME/.config}"/Zivid/API
mv ~/Downloads/License.yml "${XDG_CONFIG_HOME-$HOME/.config}"/Zivid/API/

您现在可以在 API 中使用高级功能。

关于 License.yml

License.yml 文件除了本身作为许可证外,还包含有关软件许可证的信息。以下是一个(无效的)许可证示例。

__version__: 1
__signature__: "A3r/03qb7i1lh5VhJJN4jwUU2ehRtEm2yIx5w3gVFeJXDnWzN6pxXV8qLsxsza2dkuZnybQYlxzg/XIuHO63fg=="
License:
    CustomerInformation:
        AgreementID: __not_set__
        CompanyName: "Zivid AS"
        CustomerID: __not_set__
    Entitlements: []
    ExpiresAt: 2100-10-13T09:34:00Z
    ID: "EA5B9EBA-598D-455C-A7B9-626523468A95"
    IssuedAt: 2025-10-13T09:33:25Z
    Notes: __not_set__
    Type: development

文件顶部的加密签名确保任何对文件的修改都会使其失效。因此,请务必在从 Zivid 收到文件后不要对其进行任何修改。

除了许可证密钥外,它还包含以下元数据:

  • Agreement ID:报价单编号的可选标识符

  • Company Name:获得许可证的公司名称

  • Customer ID:根据 Zivid 记录的可选客户标识符

  • Entitlements:许可证解锁的功能列表

  • Expires at:许可证到期的日期和时间(UTC )

  • ID:许可证的唯一标识符

  • Issued at:许可证生成的日期和时间(UTC)

  • Notes:关于许可证的可选备注或评论

  • Type:许可证的类型(开发版、评估版、商业版)