如何将来自用户的输入图像与 C# 中数据库中存储的图像进行比较 [英] How to compare an input image from user with a stored image on the database in C#

查看:25
本文介绍了如何将来自用户的输入图像与 C# 中数据库中存储的图像进行比较的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试创建一个 Windows 窗体应用程序,并且我在 db 中将图像存储为 blob 对象.有人可以帮助我比较如何比较将通过链接标签接受的输入图像并将其与 MySql 上存储的图像进行比较C#中的DB查找它们之间的相似性

I am trying to create a Windows Form application and I have images in db stored as blob objects.. can someone help me on how to compare an input image which will be accepted through linklabel and compare it with the stored images on MySql DB in C# to find the similarity between them

推荐答案

尝试文件哈希码.您可以将原始文件哈希码与数据一起存储在数据库中,并将其与输入图像进行比较.如果是相同的图像,它们应该具有相同的哈希值.

Try file hash code. You can store the original file hash code in the DB with the data and compare it against the input image. If it's the same image they should have the same hash value.

这篇关于如何将来自用户的输入图像与 C# 中数据库中存储的图像进行比较的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆