# api **Repository Path**: isnap-camera/api ## Basic Information - **Project Name**: api - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-10-19 - **Last Updated**: 2023-10-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # init_project ### 0. 接口 ```sh http://xxx.xxx.xxx.xxx:8080/inference ``` ### 1. api调用方式 Base64 调用: ```json { "image_type": "base64", "image_base64": img_base64, } ``` url调用: ```json { "image_type": "url", "image_base64": image_url, } ``` ### 2. 结果返回 调用成功: ```json { "success": true, "message": "", "result": [{"image_class": "套打手写"}] } ``` 调用失败: ```json { "success": false, "message": "invalid image_type" } ```