gpt4 book ai didi

java - 谷歌视觉 API : How to detect the image is painting image or real picture?

转载 作者:行者123 更新时间:2023-12-02 13:09:00 25 4
gpt4 key购买 nike

我在检测图像时遇到问题,无论是绘画图像还是真实拍摄的照片。我查过 Google Vision REST-APIs 文档,似乎没有提到这一点。

如果您能分享如何检测它的算法,我们将不胜感激。 enter image description here

enter image description here

最佳答案

大多数时候,您可以搜索 JSON 响应的 webEntities 数组。我尝试使用你的第二张图片并得到以下结果:

"webEntities": [
{
"entityId": "/m/068jd",
"score": 0.71919,
"description": "Photograph"
},
{
"entityId": "/m/04dtx9",
"score": 0.71809,
"description": "Flickr"
},
{
"entityId": "/m/07glzq",
"score": 0.71192,
"description": "Sketch"
},
{
"entityId": "/m/0k0pj",
"score": 0.64715505,
"description": "Nose"
},
{
"entityId": "/m/01kr8f",
"score": 0.41121,
"description": "Illustration"
},
{
"entityId": "/m/03c51f4",
"score": 0.39885,
"description": "Tagged"
},
{
"entityId": "/m/01dv4h",
"score": 0.37724,
"description": "Portrait"
},
{
"entityId": "/m/02csf",
"score": 0.37219,
"description": "Drawing"
},
{
"entityId": "/m/0jjw",
"score": 0.36841,
"description": "Art"
},
{
"entityId": "/m/03b19x",
"score": 0.36128,
"description": "Digital painting"
},
{
"entityId": "/m/0mfx0",
"score": 0.31653,
"description": "Doodle"
},

我认为除了在这些标签中搜索“paint”、“drawing”、“sketch”等单词之外,没有什么简单的方法可以做到这一点。

关于java - 谷歌视觉 API : How to detect the image is painting image or real picture?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44041039/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com