手写签名图像分析与移动设备敏感信息非法流出防护策略
1. 手写签名图像分析
在手写签名图像分析中,我们采用了一系列图像处理算法对签名图像进行预处理,以满足未来认证和识别的需求。
1.1 实现的伪代码
BufferedImage bi = ImageIO.read (new File("Signature_Image"));
int[][] matrix = new int[bi.getWidth()][bi.getHeight()];
for(int i=0; i<bi.getWidth();++i)
{
for(int j=0;j<bi.getHeight();++j)
{
matrix[i][j] = bi.getRGB(i,j);
}
}
int rows = bi.getWidth(), columns = bi.getHeight();
for(int i = 0; i < rows; ++i)
{
for(int j = 0; j < columns; ++j)
{
if((i==0) || (j==0) || (i==(rows-1)) || (j==(columns-1)))
matrix[i][j] = 0;
}
}
for(int r = 1; r < rows-1; r++)
{
for(int c = 1; c < columns-1; c++)
{
if ((matrix[r][c] == 1) && (matrix[r][c+1] == 1)
&
超级会员免费看
订阅专栏 解锁全文
24万+

被折叠的 条评论
为什么被折叠?



