在 C++ 中使用 OpenCV 检测剪贴画或矢量图像
我有一个使用 SURF 检测相似图像的过程,我想添加一个检查来了解哪些图像是真实的相机照片,哪些是矢量图像,例如地图屏幕截图的徽标。
示例:
照片: http://images.gta-travel.com/HH/Images/J/TYO/TYO-NEW3-8.jpg
徽标:http://estaticos.transhotel.com/img/fotos/hoteles/000137/hft000137578_005 .jpg
徽标:http://live.viajesurbis.com/vuweb/content/fichashotel/13127/HOTEL_13127_2 .jpg
我尝试查看灰色直方图(和颜色直方图),但没有任何结果有足够的信息来知道哪一个是矢量或不是。
I have a process that detects similar images using SURF and I want to add a check to know which images are real camera photos and which ones are vectorial images like logos of map-screenshots.
Examples:
Photo: http://images.gta-travel.com/HH/Images/J/TYO/TYO-NEW3-8.jpg
Logo: http://estaticos.transhotel.com/img/fotos/hoteles/000137/hft000137578_005.jpg
Logo: http://live.viajesurbis.com/vuweb/content/fichashotel/13127/HOTEL_13127_2.jpg
I tried looking at the grey histogram (and color histogram) but nothing gives me enough info to know which one are vectorials or not.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好的,解决了,下一个代码是清理直方图,获取灰度中的所有颜色并计算不同颜色的数量。也许将来我会测试使用组件直方图是否可以改进算法。
Ok, solved it, the next code is cleaning the histogram, getting all colors in grey scale and counting the different colors. Maybe in the future I will test if working with the components histograms improves the algorithm.