JCV顔認証SDK
2.0.5, English
2.0.5, English
  • Introduction
  • Function Description
  • Update log
  • Frequently Asked Questions
  • Quick start
    • Windows QuickStart
    • Linux QuickStart
    • ARM Linux QuickStart
    • Android QuickStart
  • Interface description
    • Authorization Instruction
    • C Interface description
      • Authorization Interface
      • Structure and Interface Configuration Parameter Macro Definition
      • Monocular Face Tracking
      • Binocular Face Tracking
      • Monocular Liveness Detection
      • Binocular Liveness Detection
      • Face Quality Detection
      • Static Image Face Detection
      • Extract Face Features
      • Face 1:1 Comparison and 1:N Search
      • Error Code
    • Java Interface Description-FaceproLibrary
    • Java Interface Description-Results
    • Android Interface Description
Powered by GitBook
On this page
  • Authorization Interface
  • stid_face_professional_online_activate_license
  • stid_face_professional_load_license_content
  • stid_license_release_content

Was this helpful?

  1. Interface description
  2. C Interface description

Authorization Interface

PreviousC Interface descriptionNextStructure and Interface Configuration Parameter Macro Definition

Last updated 5 years ago

Was this helpful?

Authorization Interface

For authorization process, please refer to Chapter .

Windows/Linux/Arm_Linux interface is described here, for Android interface please refer to .

stid_face_professional_online_activate_license

Function: Activate license online. Return the activated license content. Calling this function requires network; synchronous network requests are possible. Depending on network conditions, time consumed may be different. This interface is the only SDK interface that requires networking connection.

This interface does not need to be called when using offline authorization.

Declaration:

STID_SDK_API
stid_result_t
stid_face_professional_online_activate_license(
    const char *inactive_license_content,
    char** out_activated_license_content
);

Parameters:

  • [in] inactive_license_content: Input an unactivated license string, which need to be read from an unactivated license file.

  • [out] out_activated_license_content: Return the activated license content. Need to call stid_license_release_content interface to release.

Return:

  • [return] Return STID_OK if successful, otherwise return error code.

Note: The activation only needs to be performed once on each machine. The returned activated license content can be saved permanently. For subsequent SDK runs, you only need to load the activated license into the load_license_content interface.

stid_face_professional_load_license_content

Function: Load license content (string).

Declaration:

STID_SDK_API
stid_result_t
stid_face_professional_load_license_content(
    const char* license_content
);

Parameters:

  • [in] license_content: input license string, support offline verified license or activated license (returned by online_activate_license interface).

Return:

  • [return] Return STID_OK if successful, otherwise return error code (for the same product that is loaded for multiple times, STID_E_PRODUCT_LICENSE_LOADED will be returned).

stid_license_release_content

Function: Release license content, such as activated license.

Declaration:

STID_SDK_API
void
stid_license_release_content(
    const char* content
);

Parameters:

  • [in] Content: license content to be released.

Return: None.

How to authorize
Android Interface Description