你好,歡迎來到IOS教程網

 Ios教程網 >> IOS編程開發 >> IOS開發綜合 >> iOS開發之銀行卡號識別

iOS開發之銀行卡號識別

編輯:IOS開發綜合

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開發之銀行卡號識別,希望對大家有所幫助,如果大家有任何疑問請給我留言,小編會及時回復大家的。在此也非常感謝大家對本站網站的支持!

  1. 上一頁:
  2. 下一頁:
蘋果刷機越獄教程| IOS教程問題解答| IOS技巧綜合| IOS7技巧| IOS8教程
Copyright © Ios教程網 All Rights Reserved