
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Simple Ruby wrapper for Abbyy Cloud OCR SDK
Add this line to your application's Gemfile:
gem 'abbyy'
And then execute:
$ bundle
Or install it yourself as:
$ gem install abbyy
client = Abbyy::Client.new(APPLICATION_ID, PASSWORD)
client.process_business_card "business_card.png", exportFormat: 'xml', imageSource: 'photo'
client.get_task_status
client.get
$ touch config/initializers/abbyy.rb
require 'abbyy'
Abbyy.configure do |config|
config.application_id = APPLICATION_ID
config.password = PASSWORD
end
Everywhere in your rails application, you can access Abbyy without crendentials:
client = Abbyy::Client.new
client.process_image "image.png"
Create new worker ImageScanner:
$ touch app/workers/image_scanner.rb
class ImageScanner
@queue = :scanner
def self.perform(attachment_id)
attachment = Attachment.find_by_id(attachment_id)
client = Abbyy::Client.new
client.process_business_card attachment.full_filename, exportFormat: 'xml', imageSource: 'photo'
while %w(Queued InProgress).include?(client.task[:status])
sleep(client.task[:estimatedProcessingTime].to_i)
client.get_task_status
end
if client.task[:status] == 'Completed'
xml_data = REXML::Document.new(client.get)
...
else
...
end
end
end
After checking out the repo, run bin/setup
to install dependencies. Then, run bin/console
for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install
.
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that abbyy 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.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.