coolseven/huawei-frs-sdk
Composer 安装命令:
composer require coolseven/huawei-frs-sdk
包简介
Huawei Frs (Face Recognition Service) SDK for PHP
README 文档
README
Non-Official PHP sdk for Huawei's Face Recognization Service.
Important: This IS NOT AN OFFICIAL SDK. Use It At Your Own Risk.
Requirements
- php >= 7.2
How to use
- Install Sdk
composer require coolseven/huawei-frs-sdk
- Use Sdk
// $endpoint , $ak,$sk can be found at Huawei's console panel $authInfo = new AuthInfo($endpoint,$ak,$sk); $frsClient = new FrsClient($authInfo,$projectId); // get face set list // v1 版本: $responseOfV1 = $frsClient ->getFaceSetService() ->getAllFaceSets(); // v2 版本: $responseOfV2 = $frsClient->getApiCollectionV2() ->getFaceSetService() ->getAllFaceSets();
More usage demos can be found at tests
- Services & Api Cheat Sheet
- CompareService
- compareFaceByBase64
- compareFaceByObsUrl
- compareFaceByLocalFile
- DetectService
- detectFaceByBas464
- detectFaceByObsUrl
- detectFaceByLocalFile
- FaceService
- getFaces
- getFace
- addFaceByBase64
- addFaceByObsUrl
- addFaceByLocalFile
- updateFaceByFaceId
- deleteFaceByFaceId
- deleteFaceByExternalImageId
- deleteFaceByExternalField
- batchDeleteFacesByFilter
- FaceSetService
- getAllFaceSets
- getFaceSet
- createFaceSet
- deleteFaceSet
- LiveDetectService
- liveDetectByBase64
- liveDetectByObsUrl
- liveDetectByLocalFile
- SearchService
- searchFaceByBase64
- searchFaceByFaceId
- searchFaceByObsUrl
- CompareService
TODO
- Add unit tests for FaceSetService
- Add unit tests for FaceService
- Add unit tests for SearchService
- Add unit tests for DetectService
- Add unit tests for CompareService
- Add unit tests for LiveDetectService
- Add parameter validation
Huawei's Official Frs Sdks:
统计信息
- 总下载量: 52
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-09-10