91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 87.36MB
    文件類型: .rar
    金幣: 1
    下載: 0 次
    發布日期: 2022-02-08
  • 語言: 其他
  • 標簽: keras??文字識別??

資源簡介

不定長中文識別,基于keras,使用方便,里含有教程使用文件以及相關再訓練文件

資源截圖

代碼片段和文件信息

#-*-?coding:utf-8?-*-
import?os
import?ocr
import?time
import?shutil
import?numpy?as?np
from?PIL?import?Image
from?glob?import?glob
image_files?=?glob(‘./test_images/*.*‘)


if?__name__?==?‘__main__‘:
????result_dir?=?‘./test_result‘
????if?os.path.exists(result_dir):
????????shutil.rmtree(result_dir)
????os.mkdir(result_dir)

????for?image_file?in?sorted(image_files):
????????image?=?np.array(Image.open(image_file).convert(‘RGB‘))
????????t?=?time.time()
????????result?image_framed?=?ocr.model(image)
????????output_file?=?os.path.join(result_dir?image_file.split(‘/‘)[-1])
????????Image.fromarray(image_framed).save(output_file)
????????print(“Mission?complete?it?took?{:.3f}s“.format(time.time()?-?t))
????????print(“\nRecognition?Result:\n“)
????????for?key?in?result:
????????????print(result[key][1])


?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

????.......???????148??2018-07-16?16:28??chinese_ocr\.gitignore

?????文件????????408??2019-02-02?15:53??chinese_ocr\.idea\chinese_ocr.iml

?????文件????????138??2019-02-02?15:50??chinese_ocr\.idea\encodings.xml

?????文件????????294??2019-02-02?15:50??chinese_ocr\.idea\misc.xml

?????文件????????281??2019-02-02?15:50??chinese_ocr\.idea\modules.xml

?????文件??????16211??2019-02-02?16:21??chinese_ocr\.idea\workspace.xml

????.......???????121??2018-07-16?16:28??chinese_ocr\ctpn\checkpoints\checkpoint

????.......??71572976??2018-07-16?16:28??chinese_ocr\ctpn\checkpoints\VGGnet_fast_rcnn_iter_50000.ckpt.data-00000-of-00001

????.......??????1643??2018-07-16?16:28??chinese_ocr\ctpn\checkpoints\VGGnet_fast_rcnn_iter_50000.ckpt.index

????.......????649342??2018-07-16?16:28??chinese_ocr\ctpn\checkpoints\VGGnet_fast_rcnn_iter_50000.ckpt.meta

????.......??????3994??2018-07-16?16:28??chinese_ocr\ctpn\ctpn\demo.py

????.......???????872??2018-07-16?16:28??chinese_ocr\ctpn\ctpn\text.yml

????.......??????1197??2018-07-16?16:28??chinese_ocr\ctpn\ctpn\train_net.py

????.......????160420??2018-07-16?16:28??chinese_ocr\ctpn\data\demo\001.jpg

????.......?????23022??2018-07-16?16:28??chinese_ocr\ctpn\data\demo\002.jpg

????.......????178066??2018-07-16?16:28??chinese_ocr\ctpn\data\demo\003.jpg

????.......????265586??2018-07-16?16:28??chinese_ocr\ctpn\data\demo\004.jpg

????.......????707796??2018-07-16?16:28??chinese_ocr\ctpn\data\demo\005.jpg

????.......????470595??2018-07-16?16:28??chinese_ocr\ctpn\data\demo\006.jpg

????.......?????79041??2018-07-16?16:28??chinese_ocr\ctpn\data\demo\007.jpg

????.......????123596??2018-07-16?16:28??chinese_ocr\ctpn\data\demo\008.jpg

????.......????362936??2018-07-16?16:28??chinese_ocr\ctpn\data\demo\009.jpg

????.......?????12952??2018-07-16?16:28??chinese_ocr\ctpn\data\demo\010.png

????.......????210939??2018-07-16?16:28??chinese_ocr\ctpn\data\oriented_results\001.jpg

????.......?????49910??2018-07-16?16:28??chinese_ocr\ctpn\data\oriented_results\002.jpg

????.......?????62861??2018-07-16?16:28??chinese_ocr\ctpn\data\oriented_results\003.jpg

????.......????232357??2018-07-16?16:28??chinese_ocr\ctpn\data\oriented_results\004.jpg

????.......????391124??2018-07-16?16:28??chinese_ocr\ctpn\data\oriented_results\005.jpg

????.......????279478??2018-07-16?16:28??chinese_ocr\ctpn\data\oriented_results\006.jpg

????.......????163359??2018-07-16?16:28??chinese_ocr\ctpn\data\oriented_results\007.jpg

............此處省略126個文件信息

評論

共有 條評論