Win64 installation¶
Device activation¶
[Single machine online authorization option]
./tools/licenceManager [SN_CODE]
[Single machine offline authorization option]
./tools/licenceLocalInfo [SN_CODE] [OUTPUT_FILE]. (will generate device fingerprint OUTPUT_FILE).
Send us the device fingerprint file
We generate an activation file based on the fingerprint file and send it to you
./tools/licenceAuthOffline [UPDATE_FILE], activate the device
[Group authorization option]
./tools/licenceSetLocalServer [IP] [PORT] (IP PORT is the IP and port number of the group license server)
Jar package start¶
CD {sdk_path}/demo/dface_springboot
Run ./start_server.sh [sdk_path], start from the command line to start the Edge Server service
The configuration file is in config/application.properties, modify configuration config.dface.model-path={sdk_path}/model/normal_binary
Get access 127.0.0.1:8085/common/test to see if the return of json is successful
Run ./start_server.sh stop from the command line to shut down the Edge Server service
Intellij IDEA configuration¶
Enter example/java, use Intellij IDEA to open the df_springboot project, and maven synchronization dependency library
View src/main/resources/application.properties, modify the configuration item config.dface.model-path={sdk_path}/model/normal_binary
View src/main/resources/application.properties, modify the configuration item config.dface.object-pool-size={object_pool_size_you_set}.
[Optional] Click Run->Edit Configuration, add VM options:-Djava.library.path={sdk_path}/lib, see {sdk_path}/exampleCode/java/df_springboot_setup.jpg for details
Click Run Application to run
Get access 127.0.0.1:8085/common/test to see if the return of json is successful
postman test¶
Download and install postman, import {sdk_path}/demo/dface_springboot/postman_collection.json in the sdk directory
We have listed the basic test interfaces, modify the Body/form-data parameters of each interface to test