Licensing

By having any Visage Technologies Program, or part of it, installed or copied on your computer, you agree to the terms of the Visage Technologies AB Software License Agreement. If you do not agree with these terms, please entirely remove any Visage Technologies Programs from your computer.

This section focuses on technical issues such as obtaining and using the license key files. For detailed commercial conditions please contact Visage Technologies.

Applications developed using visage|SDK must be licensed in order to function. Licensing is based on License Key Files. A single License Key File is valid for one or more installations on one or more platforms (operating systems). The License Key File can be opened in a text editor in order to read the licensing information, but it is important not to change the file in any way as it would become invalid.

Applications without a valid license key will not work properly and appropriate warning message will be displayed.

If an error occurs during licensing activation, a message will be printed to the Xcode Console with the underlying error code.

Please refer to the Licensing Errors page which explains the individual error codes and how to resolve them.

Obtaining the License Key File

For 30-day evaluation, simply send an email request to your Visage Technologies contact person and you will receive a License Key File by email.

If you are purchasing a license, please decide on your App's Bundle Identifier and send it to your Visage Technologies contact person together with your purchase order. In return, you will receive a License Key File by email.

Including the License Key File in your application

  1. Add the License Key File to the Resources group of your Xcode project. This can be done by dragging and dropping the License Key File in the Resources group. If the Resources group doesn't exist, it should be created beforehand.

  2. In your application, you need to call the initialization function in order to let the Application read the License Key File. This is done as follows in your application code:
  3. 	// necessary prototype declaration for licensing
    	namespace VisageSDK {
    		int initializeLicenseManager(const char *licenseKeyFileName);
    	}
    	
    	//...
    	
    	//initialize licensing
    	initializeLicenseManager("name-of-the-license-file.vlc");
    
    
    where "name-of-the-license-file.vlc" is the name of your License Key File. The above example expects the License Key File to be in the root folder of the application bundle.

  4. In the Sample projects the licensing code is already inserted, so you just need to change the license key file name when you obtain the license key file. Specifically:

    1. In the Visage Tracker Demo sample project the licensing code is found in the initTracker method, in the TrackerWrapper.mm file.

      In the Visage Tracker Unity Demo sample project, the licensing code is found in the in _initTracker function, in the VisageTrackerUnityPlugin.mm file (VisageTrackerUnityPlugin project). It is necessary to place the license key file in correct folder in your Unity project : Assets/StreamingAssets/Visage Tracker. After that, licenseString variable should be set to the name of your license key file (XXX-XXX-XXX-XXX-XXX-XXX-XXX-XXX-XXX-XXX-XXX.vlc) in script LicenseString.cs.

      In the Face Detect Demo sample project, the licensing code is found in the initTracker method, in the VisageFeaturesDetectorWrapper.mm file.

      In the Showcase Demo sample project the licensing code is found in the initTracker method, in the TrackerWrapper.mm file.

NOTE: In case you receive error message that App Transport Security has blocked a cleartext HTTP (http://) resource load, please set the NSAllowsArbitraryLoads key to YES under NSAppTransportSecurity dictionary in your .plist file

Including multiple License Key Files in your application

  1. Add the License Key Files to the Resources group of your Xcode project. This can be done by dragging and dropping the License Key Files in the Resources group. If the Resources group doesn't exist, it should be created beforehand.

  2. To include multiple License Key Files simply call initialization function for each License Key File. This is done as follows in your application code:
  3. 	// neccessary prototype declaration for licensing
    	namespace VisageSDK {
    		int initializeLicenseManager(const char *licenseKeyFileName);
    	}
    	
    	//...
    	
    	//initialize licensing
    	initializeLicenseManager("name-of-first-license-file.vlc");
    	initializeLicenseManager("name-of-second-license-file.vlc");
    	
    
    where "name-of-first-license-file.vlc" and "name-of-second-license-file.vlc" are the names of your License Key Files. The above example expects the License Key Files to be in the root folder of the application bundle.

  4. For including multiple License Key Files in visage|SDK sample applications, refer to guidelines specified in section Including the License Key File in your application for each License Key File.