Giter Club home page Giter Club logo

Comments (9)

ypwhs avatar ypwhs commented on July 24, 2024

你可以使用 cv2.resize 转换图片尺寸,使其高度一致,宽度是可变的,不影响精度。

from captcha_break.

brucefeng10 avatar brucefeng10 commented on July 24, 2024

你可以使用 cv2.resize 转换图片尺寸,使其高度一致,宽度是可变的,不影响精度。

谢谢,确实有效

from captcha_break.

xiaoguaishoubaobao avatar xiaoguaishoubaobao commented on July 24, 2024

大神 请问下 您说的cv2.resize 转换图片尺寸,使其高度一致,宽度是可变的,不影响精度
那宽度一致的情况的情况下 在__getitem__里面
ctc_2019里面 看大神的代码是X = np.zeros((self.batch_size, self.height, self.width, 3), dtype=np.float32) 那这个宽度是动态变化的吗 还是填充0呢?

from captcha_break.

ypwhs avatar ypwhs commented on July 24, 2024

固定的,generator生成的时候已经设置了固定的width

from captcha_break.

xiaoguaishoubaobao avatar xiaoguaishoubaobao commented on July 24, 2024

哈哈哈 我是想问自定义数据的 我觉得我应该是解决了 我是直接填充的0
还有个问题大神 如果验证码长度是 4 5 6这样不定长的 我需要怎么设置训练代码呢

from captcha_break.

ypwhs avatar ypwhs commented on July 24, 2024

哈哈哈 我是想问自定义数据的 我觉得我应该是解决了 我是直接填充的0 还有个问题大神 如果验证码长度是 4 5 6这样不定长的 我需要怎么设置训练代码呢

图片填充0是可以的,然后input_length需要按照图片卷积出来的特征图宽度去调整。

标签方面,target_length也需要根据实际情况调整。

from captcha_break.

xiaoguaishoubaobao avatar xiaoguaishoubaobao commented on July 24, 2024

我现在是设置的通用大小是150*30 我把高度统一设置为30 长度不足150的都填充0了 input_length 我好像用的默认的 没有特别设置的好像精度也能到99%
然后第二个问题 target_length 我需要根据什么情况设置呢 大神能稍微详细说一下吗

from captcha_break.

ypwhs avatar ypwhs commented on July 24, 2024

我现在是设置的通用大小是150*30 我把高度统一设置为30 长度不足150的都填充0了 input_length 我好像用的默认的 没有特别设置的好像精度也能到99%

target_length 就是标签长度,比如:

123
abcd
1111111

target_length = [3, 4, 7]

from captcha_break.

xiaoguaishoubaobao avatar xiaoguaishoubaobao commented on July 24, 2024

我现在是设置的通用大小是150*30 我把高度统一设置为30 长度不足150的都填充0了 input_length 我好像用的默认的 没有特别设置的好像精度也能到99%

target_length 就是标签长度,比如:

123
abcd
1111111

target_length = [3, 4, 7]

我当时这么猜测的 验证了也确实是这个 万分感谢大神啦 哈哈哈哈哈哈

from captcha_break.

Related Issues (20)

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.