我正在研究可以使用Clarifai api检测图像的应用程序。我创建了所有组件,但是任何时候发布它都会显示
api.clarifai.com/v2/models/a403429f2ddf4b49b307e318f00e528b/outputs:1 开机自检 https://api.clarifai.com/v2/models/a403429f2ddf4b49b307e318f00e528b/outputs 400(错误请求)
我尝试生成新的API,但没有有效发布
import React, {Component} from 'react';
import Clarifai from 'clarifai';
const app = new Clarifai.App({apiKey: '8d52c7ce334b4c26860c4f9b60dc3775'});
app.models
.predict(
Clarifai.FACE_DETECT_MODEL,
this.state.input)
.then(
function(response) {
console.log(response.output[0].data.regions[0].region_info.bounding_box)
},
function(err) {
}
)
}
应该以结果回应。