I was pretty sure I could acheive this goal by using the API called Prediction with Regions Feedback to train objects in the image. However, this thread seems to warn me it is not available yet. Then, my question is what is the reason for your have Prediction with Regions Feedback? What is the use case for the API?
clarifai.models.feedback(Clarifai.LOGO_MODEL, 'https://developer.clarifai.com/static/images/model-samples/logo-002.jpg', {
id: '{input_id}',
data: {
'regions': [
{
'region_info': {
'bounding_box': {
'top_row': 0.3,
'left_col': 0.2,
'bottom_row': 0.7,
'right_col': 0.8
},
'feedback': 'accurate'
},
'data': {
'concepts': [
{"id": "ai_TG4GHlnf", "value": true }
]
}
}
]
},
info: {
'eventType': 'annotation',
'outputId': '{output_id}',
'endUserId': '{end_user_id}',
'sessionId': '{session_id}'
}
})
.then(log)
.catch(log);