Coder Social home page Coder Social logo

ccf-ocr's People

Contributors

hzli-ucas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ccf-ocr's Issues

请问关于水印模板文件的生成能开源吗?

你好,这两个文件的生成能开源吗?或者有没有什么可以指点的地方,比如您参考的是哪个开源算法?

水印的Laplace模板用于精确定位

wm_filter = [np.load('data/watermark1_laplace.npy'), np.load('data/watermark2_laplace.npy')]

二值图模板用于生成蒙版以进行后续去水印操作

wm_img = [np.load('data/watermark1_solid.npy'), np.load('data/watermark2_solid.npy')]

程序报错

(chineseocr) quh@quh-Z370P-D3:~/pythonwork/tr/CCF-OCR$ python main.py
read Chinese alphabet from file
Traceback (most recent call last):
File "main.py", line 4, in
import recognition
File "/home/quh/pythonwork/tr/CCF-OCR/recognition.py", line 14, in
alphabet = f.read().replace('\n', '')
File "/home/quh/.conda/envs/chineseocr/lib/python3.6/codecs.py", line 321, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 23: invalid start byte

模型不匹配

RuntimeError: Error(s) in loading state_dict for chsNet:
size mismatch for cnn.conv6.weight: copying a param with shape torch.Size([6857, 512, 1, 1]) from checkpoint, the shape in current model is torch.Size([6937, 512, 1, 1]).
size mismatch for cnn.conv6.bias: copying a param with shape torch.Size([6857]) from checkpoint, the shape in current model is torch.Size([6937]).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.