|
@@ -112,6 +112,13 @@ public class SceneServiceImpl implements ISceneService {
|
|
|
log.error("提取人体分割图片失败,imgUrl: "+imgUrl, e);
|
|
|
bodySegmentStatusBean.setStatus(CommonOperStatus.FAILD.code());
|
|
|
redisUtil.hset(RedisKey.SCENE_BODY_SEGMENT, uuid, JSON.toJSONString(bodySegmentStatusBean));
|
|
|
+ }finally {
|
|
|
+ try {
|
|
|
+ //免费版qps不能大于2,故休眠一秒
|
|
|
+ Thread.sleep(1000L);
|
|
|
+ } catch (InterruptedException e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|