Closed chrishein closed 9 years ago
Thank you for your contribution.
Returning each match score is something that could indeed be useful for some users. However, for backward compatibility, it would be better, as a first step, to put it in a new "scores" array rather than in the "image_ids" array. For a next version of Pastec, when it will be possible to break the API, the id, the score and the bounding_rect will be returned in an object of a common "matches" array.
Sounds good. I updated the pull request to return scores in separate array.
Thanks!
I think it can be useful to return each search result with the score, as this may enable clients searching for images to determine which results are good enough for their specific use of Pastec.
Example response: