
Security News
Follow-up and Clarification on Recent Malicious Ruby Gems Campaign
A clarification on our recent research investigating 60 malicious Ruby gems.
Ruby GOCR binding for lib http://jocr.sourceforge.net/
Currently it is in progress, unstable version.
Add this line to your application's Gemfile:
gem 'gocr-ruby'
And then execute:
$ bundle
Or install it yourself as:
$ gem install gocr-ruby
current api almost as a ruby-tesseract-ocr
require 'gocr'
e = GOCR::Engine.new(whitelist: '0-9').text_for('image.png')
:whitelist
- char filter (ex. hexdigits: ""0-9A-Fx"", only ASCII):database
- database path including final slash (default is ./db/):format
- output format (ISO8859_1 TeX HTML XML UTF8 ASCII):gray_level
- threshold grey level 0<160<=255 (0 = autodetect):numbers_only
- numbers only:mode
operation modes (bitpattern, see official gocr manual):certainty
- value of certainty (in percent, 0..100, default=95):unrecognize_char
- output this string for every unrecognized character:dust_size
- dust_size (remove small clusters, -1 = autodetect):space_width
- spacewidth/dots (0 = autodetect)git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that gocr-ruby demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.
Research
/Security News
A malicious Go module posing as an SSH brute forcer exfiltrates stolen credentials to a Telegram bot controlled by a Russian-speaking threat actor.