当前位置 : 主页 > 手机开发 > ios >

iOS开发之银行卡号识别

来源:互联网 收集:自由互联 发布时间:2021-05-16
iOS open cv 大体有个思路 1. 捕捉银行卡图像,截取到字符区域 2. 最捕捉到的图像进行处理,去噪比,二值化, 3. 将银行卡号码区域进行切割划分,然后对比字符 opencv 安装失败,直接下

iOS open cv

大体有个思路

1. 捕捉银行卡图像,截取到字符区域

2. 最捕捉到的图像进行处理,去噪比,二值化,

3. 将银行卡号码区域进行切割划分,然后对比字符

opencv 安装失败,直接下载拖进 xcode 的话,会报以下错误

这里是 详细解决链接地址

Undefined symbols for architecture x86_64:
 "_jpeg_free_large", referenced from:
   _free_pool in opencv2(jmemmgr.o)
 "_jpeg_free_small", referenced from:
   _free_pool in opencv2(jmemmgr.o)
   _self_destruct in opencv2(jmemmgr.o)
 "_jpeg_get_large", referenced from:
   _alloc_large in opencv2(jmemmgr.o)
   _alloc_barray in opencv2(jmemmgr.o)
 "_jpeg_get_small", referenced from:
   _jinit_memory_mgr in opencv2(jmemmgr.o)
   _alloc_small in opencv2(jmemmgr.o)
 "_jpeg_mem_available", referenced from:
   _realize_virt_arrays in opencv2(jmemmgr.o)
 "_jpeg_mem_init", referenced from:
   _jinit_memory_mgr in opencv2(jmemmgr.o)
 "_jpeg_mem_term", referenced from:
   _jinit_memory_mgr in opencv2(jmemmgr.o)
   _self_destruct in opencv2(jmemmgr.o)
 "_jpeg_open_backing_store", referenced from:
   _realize_virt_arrays in opencv2(jmemmgr.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

解决方法:

1.下载安装 libjpeg ,将

/opt/libjpeg-turbo/lib/libjpeg.a 

拷贝到项目中,然后添加几个 framework : CoreVideo.framework, AssetsLibrary.framework, CoreMedia.framework 。

以上所述是小编给大家介绍的iOS开发之银行卡号识别,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对自由互联网站的支持!

网友评论