Skip to content

Problem with convert images from file upload #3

Description

@gintoni
require 'ocr_space'

resource = OcrSpace::Resource.new(apikey: "MyApiKey")   #My actual api key

results = resource.clean_convert file: "/Users/Example/Desktop/image.jpg"  #the path is correct
puts results
Traceback (most recent call last):
        1: from ./ruby.rb:5:in `<main>'
C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/ocr_space-2.3.7/lib/ocr_space/convert.rb:33:in `clean_convert': undefined method `[]' for nil:NilClass (NoMethodError)

I've got some problems when I try to convert an image from file upload, but when I convert it from url it works perfectly

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions