Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add IQDB metrics to results #3306

Closed
2 tasks
BrokenEagle opened this issue Sep 18, 2017 · 6 comments
Closed
2 tasks

Add IQDB metrics to results #3306

BrokenEagle opened this issue Sep 18, 2017 · 6 comments

Comments

@BrokenEagle
Copy link
Collaborator

BrokenEagle commented Sep 18, 2017

Specifically, the similarity percentage, similar to what iqdb.org and saucenao.com do. Additionally, allow the minimum similarity percentage to be specified when responses are sent to IQDBS.

  • Add % similarity to HTML and API responses

For the API response, I don't know if it'd be better to just append it to the post data, or have the two be separate, with 'similarity' specifying the similarity percentage and 'post' specifying the post data....?

  • Allow minimum similarity to be specified

Have a URL setting, a user setting, and a default setting, in that order of preference.

Edit:

Having a minimum similarity might also require having a limit setting as well, with a default setting, user setting, and/or a URL setting.

@r888888888
Copy link
Collaborator

Oh, is this for #3196?

@BrokenEagle
Copy link
Collaborator Author

It could be, although it mainly came about from the use Danbooru's IQDB function in a few userscripts I've published to find images on other sites like 4Chan or one of the other Boorus that haven't been uploaded yet.

http://danbooru.donmai.us/forum_topics/14450
http://danbooru.donmai.us/forum_topics/14420

In one of the above topics, a user asked if the post # links added from IQDB matches could be quantified by their similarity score. That's currently not possible with Danbooru's IQDB.

Although IQDB.org and SauceNao.com do have a similarity score, they each have their own set of difficulties, with IQDB.org IP-banning after a certain amount of usage not to mention its HTML-only interface, and SauceNAO.com having limited API usage without a subscription.

@r888888888
Copy link
Collaborator

I'm not sure how useful specifying the minimum similarity is. The current value is hardcoded to 80. Is there a reason to pick another value?

@BrokenEagle
Copy link
Collaborator Author

@r888888888

I wasn't aware of any requirements to specify the minimum similarity yet, although I know that SauceNao does have a similarity paramater, and both SaudeNao and IQDB.org both seem to have a lower minimum similarity. It's not that unusual to get results down in the 50% range, although for the usecase of Danbooru users, i.e. finding actual matches, I think 80% is sufficient.

Just a question though... with the above fix, will the match score also be included when going through the API...? If not, is that something else that can be added on?

@r888888888
Copy link
Collaborator

It's included in the JSON now. That's implemented in iqdbs.

@BrokenEagle
Copy link
Collaborator Author

Ah great, I see it now. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants