java sdk
1.0.0
Java SDK main directory structure
com.baidu.aip
├── auth //签名相关类
├── http //Http通信相关类
├── client //公用类
├── exception //exception类
├── ocr
│ └── AipOcr //OCR服务入口
├── face
│ └── AipFace //人脸服务入口
├── imagecensor
│ └── AipImageCensor //图像审核服务入口
├── imageclassify
│ └── AipImageClassify //图像识别服务入口
├── imageprocess
│ └── AipImageProcess //图像处理服务入口
├── nlp
│ └── AipNlp //Nlp服务入口
├── kg
│ └── AipKnowledgeGraphic //知识图谱服务入口
├── speech
│ └── AipSpeech //语音服务入口
└── util //工具类
Supported JAVA version: 1.7+
The steps to use the JAR package directly are as follows:
1. Download the Java SDK compression tool package from the official website.
2. Unzip the downloaded aip-java-sdk-version.zip
and copy it to the project folder.
3. Right-click "Project->Properties->Java Build Path->Add JARs" in Eclipse.
4. Add the SDK tool package aip-java-sdk-version.jar
and the third-party dependency tool package json-20160810.jar
.
Among them, version
is the version number. After the addition is completed, the user can use the OCR Java SDK in the project.
Use maven dependencies:
Add the following dependencies:
com.baidu.aip
java-sdk
4.8.0
Refer to the official documentation of Baidu AI Open Platform