installation

Jar package start

  • Device activation
  • [Single-machine authorization option] ./tools/licenceManager xxxx Activate the device (xxx is the activation code)
  • [Group license option] ./tools/licenceSetLocalServer IP PORT (IP PORT is the IP and port number of the group license server)
  • Run ./start_server.sh start from the command line to start the Edge Server service
  • 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 close the Edge Server service

Intellij IDEA configuration

  • Enter example/java, open the df_springboot project with Intellij IDEA, and maven synchronizes the 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.thread-pool-size={maximum allowable number of threads}, the maximum allowable number of threads is determined by the activation code, the default is 1, if you need to increase please contact us.
  • [Optional] Click Run->Edit Configuration, add VM options:-Djava.library.path={SDK_ROOT}/lib
  • Click Run Application to run
  • Get access to 127.0.0.1:8085/common/test to see if the return of json is successful

Postman test

  • Download and install postman, and import postman_collection.json in the sdk directory
  • We have listed the basic test interfaces, modify the Body/form-data parameters of each API to test