iOS開發(fā)之銀行卡號識別
iOS open cv
大體有個思路
1. 捕捉銀行卡圖像,截取到字符區(qū)域
2. 最捕捉到的圖像進(jìn)行處理,去噪比,二值化,
3. 將銀行卡號碼區(qū)域進(jìn)行切割劃分,然后對比字符
opencv 安裝失敗,直接下載拖進(jìn) xcode 的話,會報以下錯誤
這里是 詳細(xì)解決鏈接地址
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
拷貝到項(xiàng)目中,然后添加幾個 framework : CoreVideo.framework, AssetsLibrary.framework, CoreMedia.framework 。
以上所述是小編給大家介紹的iOS開發(fā)之銀行卡號識別,希望對大家有所幫助,如果大家有任何疑問請給我留言,小編會及時回復(fù)大家的。在此也非常感謝大家對腳本之家網(wǎng)站的支持!
相關(guān)文章
iOS開發(fā)KVO實(shí)現(xiàn)細(xì)節(jié)解密
這篇文章主要為大家介紹了iOS開發(fā)KVO實(shí)現(xiàn)細(xì)節(jié)解密,有需要的朋友可以借鑒參考下,希望能夠有所幫助,祝大家多多進(jìn)步,早日升職加薪2022-08-08iOS中只讓textField使用鍵盤通知的實(shí)例代碼
本文通過實(shí)例代碼給大家介紹了OS中只讓textField使用鍵盤通知的操作方法,代碼簡單易懂,非常不錯,具有參考借鑒加載,需要的的朋友參考下吧2017-07-07iOS 隱私權(quán)限和通過openURL實(shí)現(xiàn)跳轉(zhuǎn)實(shí)例
這篇文章主要介紹了iOS 隱私權(quán)限和通過openURL實(shí)現(xiàn)跳轉(zhuǎn)實(shí)例,具有一定的參考價值,感興趣的小伙伴們可以參考一下2017-06-06iOS正則表達(dá)式驗(yàn)證手機(jī)號、郵箱、身份證號等
這篇文章主要介紹了iOS正則表達(dá)式驗(yàn)證手機(jī)號、郵箱、身份證號等信息,具有一定的參考價值,感興趣的小伙伴們可以參考一下2016-12-12iOS實(shí)現(xiàn)圖片存在本地、再從本地獲取圖片的功能
本文主要介紹了iOS實(shí)現(xiàn)圖片存在本地、再從本地獲取圖片的功能的代碼。具有很好的參考價值。下面跟著小編一起來看下吧2017-03-03