Initialization and Termination¶
You must initialize the AVBlocks API when your application starts and terminate it before your application ends. The AVBlocks license can be set right after the initialization. If you do not set a license, AVBlocks will work in demo mode.
from avblocks import Library
Library.initialize()
# Set license information. To run AVBlocks in demo mode, comment the next line out
Library.set_license("license-xml-string")
Library.shutdown()