是否有一个很好的算法来检测2个矩阵是否相似

时间:2011-07-14 05:00:15

标签: c# algorithm

我有两个矩阵,如下面的(A)和(B)↓

我想知道,

1)(B)中的数字(7,6)是否也在(A)

2)B是66%,比如A .....

而且,我怎么能用CSharp做到这一点?

感谢您的建议.....

    (A)
    000000000000000000000000000000000000000
    000011111111100000010000000001000000000
    000000000001000000010000000001000000000
    000000000100000000010000000001000000000
    000000001000000000010000000001000000000
    000000010000000000010000000001111111110
    000000100000000000010000000001000000010
    000001000000000000010000000001000000010
    000010000000000000010000000001111111110
    000000000000000000000000000000000000000




    (B)
    000000000000000000000000000000000000000
    000011111111100000000000000001000000000
    000000000001000000000000000001000000000
    000000000100000000000000000001000000000
    000000001000000000000000000001000000000
    000000010000000000000000000001111111110
    000000100000000000000000000001000000010
    000001000000000000000000000001000000010
    000010000000000000000000000001111111110
    000000000000000000000000000000000000000

1 个答案:

答案 0 :(得分:2)

OCR(光学字符识别)是一个巨大的领域 - 而不是我的领域。

根据您的具体情况,神经网络是一种潜在的解决方案。此代码项目页面上有一个C#解决方案:

http://www.codeproject.com/KB/cs/neural_network_ocr.aspx

否则,请查看所有这些重复的问题:

https://stackoverflow.com/questions/744966/any-open-source-c-ocr-library https://stackoverflow.com/questions/1512271/any-free-ocr-library-for-c