Skip to content

Instantly share code, notes, and snippets.

@gohuygo
Created August 1, 2015 19:23
Show Gist options
  • Select an option

  • Save gohuygo/acf7727387d1c6c7140a to your computer and use it in GitHub Desktop.

Select an option

Save gohuygo/acf7727387d1c6c7140a to your computer and use it in GitHub Desktop.
[Coveralls] Set up the SimpleCov formatter.
[Coveralls] Using SimpleCov's default settings.
FF.F..FFFF.F.FFFFFF.
Failures:
1) Rtesseract::BoxChar bounding box by char
Failure/Error: expect(RTesseract::BoxChar.new(@image_tiff).characters.is_a?(Array)).to eql(true)
Magick::ImageMagickError:
no decode delegate for this image format `TIFF' @ error/constitute.c/ReadImage/501
# ./lib/processors/rmagick.rb:26:in `read'
# ./lib/processors/rmagick.rb:26:in `read_with_processor'
# ./lib/processors/rmagick.rb:18:in `image_to_tif'
# ./lib/rtesseract.rb:164:in `image'
# ./lib/rtesseract.rb:180:in `convert_command'
# ./lib/rtesseract.rb:192:in `convert'
# ./lib/rtesseract/box.rb:17:in `words'
# ./spec/rtesseract_box_char_spec.rb:12:in `block (2 levels) in <top (required)>'
2) Rtesseract::Box bounding box
Failure/Error: expect(RTesseract.new(@words_image).to_s).to eql("If you are a friend,\nyou speak the password,\nand the doors will open.\n\n")
Errno::ENOENT:
No such file or directory - /var/folders/15/cd64tgzx04g5591y8r4ysr5r0000gn/T/1438456983.8140328932.txt
# ./lib/rtesseract.rb:184:in `read'
# ./lib/rtesseract.rb:184:in `convert_text'
# ./lib/rtesseract.rb:194:in `convert'
# ./lib/rtesseract.rb:218:in `to_s'
# ./spec/rtesseract_box_spec.rb:12:in `block (2 levels) in <top (required)>'
3) Rtesseract::Mixed should translate parts of the image to text
Failure/Error: expect(mix_block.to_s_without_spaces).to eql('43FF')
RTesseract::ConversionError:
RTesseract::ConversionError
# ./lib/rtesseract/mixed.rb:32:in `rescue in convert'
# ./lib/rtesseract/mixed.rb:26:in `convert'
# ./lib/rtesseract/mixed.rb:39:in `to_s'
# ./lib/rtesseract/mixed.rb:48:in `to_s_without_spaces'
# ./spec/rtesseract_mixed_spec.rb:23:in `block (2 levels) in <top (required)>'
4) Rtesseract translate image to text
Failure/Error: expect(RTesseract.new(@image_tif).to_s_without_spaces).to eql('43XF')
Magick::ImageMagickError:
no decode delegate for this image format `TIFF' @ error/constitute.c/ReadImage/501
# ./lib/processors/rmagick.rb:26:in `read'
# ./lib/processors/rmagick.rb:26:in `read_with_processor'
# ./lib/processors/rmagick.rb:18:in `image_to_tif'
# ./lib/rtesseract.rb:164:in `image'
# ./lib/rtesseract.rb:180:in `convert_command'
# ./lib/rtesseract.rb:192:in `convert'
# ./lib/rtesseract.rb:218:in `to_s'
# ./lib/rtesseract.rb:227:in `to_s_without_spaces'
# ./spec/rtesseract_spec.rb:25:in `block (2 levels) in <top (required)>'
5) Rtesseract translate images .png, .jpg, .bmp
Failure/Error: expect(RTesseract.new(@path.join('images', 'test.png').to_s).to_s_without_spaces).to eql('HW9W')
Errno::ENOENT:
No such file or directory - /var/folders/15/cd64tgzx04g5591y8r4ysr5r0000gn/T/1438456983.833672501.txt
# ./lib/rtesseract.rb:184:in `read'
# ./lib/rtesseract.rb:184:in `convert_text'
# ./lib/rtesseract.rb:194:in `convert'
# ./lib/rtesseract.rb:218:in `to_s'
# ./lib/rtesseract.rb:227:in `to_s_without_spaces'
# ./spec/rtesseract_spec.rb:32:in `block (2 levels) in <top (required)>'
6) Rtesseract support diferent processors
Failure/Error: expect(RTesseract.new(@image_tif).to_s_without_spaces).to eql('43XF')
Magick::ImageMagickError:
no decode delegate for this image format `TIFF' @ error/constitute.c/ReadImage/501
# ./lib/processors/rmagick.rb:26:in `read'
# ./lib/processors/rmagick.rb:26:in `read_with_processor'
# ./lib/processors/rmagick.rb:18:in `image_to_tif'
# ./lib/rtesseract.rb:164:in `image'
# ./lib/rtesseract.rb:180:in `convert_command'
# ./lib/rtesseract.rb:192:in `convert'
# ./lib/rtesseract.rb:218:in `to_s'
# ./lib/rtesseract.rb:227:in `to_s_without_spaces'
# ./spec/rtesseract_spec.rb:39:in `block (2 levels) in <top (required)>'
7) Rtesseract change the image
Failure/Error: expect(image.to_s_without_spaces).to eql('43XF')
Magick::ImageMagickError:
no decode delegate for this image format `TIFF' @ error/constitute.c/ReadImage/501
# ./lib/processors/rmagick.rb:26:in `read'
# ./lib/processors/rmagick.rb:26:in `read_with_processor'
# ./lib/processors/rmagick.rb:18:in `image_to_tif'
# ./lib/rtesseract.rb:164:in `image'
# ./lib/rtesseract.rb:180:in `convert_command'
# ./lib/rtesseract.rb:192:in `convert'
# ./lib/rtesseract.rb:218:in `to_s'
# ./lib/rtesseract.rb:227:in `to_s_without_spaces'
# ./spec/rtesseract_spec.rb:57:in `block (2 levels) in <top (required)>'
8) Rtesseract select the language
Failure/Error: expect(RTesseract.new(@image_tif, lang: 'eng').to_s_without_spaces).to eql('43XF')
Magick::ImageMagickError:
no decode delegate for this image format `TIFF' @ error/constitute.c/ReadImage/501
# ./lib/processors/rmagick.rb:26:in `read'
# ./lib/processors/rmagick.rb:26:in `read_with_processor'
# ./lib/processors/rmagick.rb:18:in `image_to_tif'
# ./lib/rtesseract.rb:164:in `image'
# ./lib/rtesseract.rb:180:in `convert_command'
# ./lib/rtesseract.rb:192:in `convert'
# ./lib/rtesseract.rb:218:in `to_s'
# ./lib/rtesseract.rb:227:in `to_s_without_spaces'
# ./spec/rtesseract_spec.rb:81:in `block (2 levels) in <top (required)>'
9) Rtesseract be configurable
Failure/Error: expect(RTesseract.new(@image_tif, chop_enable: 0).to_s_without_spaces).to eql('43XF')
Magick::ImageMagickError:
no decode delegate for this image format `TIFF' @ error/constitute.c/ReadImage/501
# ./lib/processors/rmagick.rb:26:in `read'
# ./lib/processors/rmagick.rb:26:in `read_with_processor'
# ./lib/processors/rmagick.rb:18:in `image_to_tif'
# ./lib/rtesseract.rb:164:in `image'
# ./lib/rtesseract.rb:180:in `convert_command'
# ./lib/rtesseract.rb:192:in `convert'
# ./lib/rtesseract.rb:218:in `to_s'
# ./lib/rtesseract.rb:227:in `to_s_without_spaces'
# ./spec/rtesseract_spec.rb:100:in `block (2 levels) in <top (required)>'
10) Rtesseract crop image
Failure/Error: expect(RTesseract.new(@image_tif, psm: 7).crop!(140, 10, 36, 40).to_s_without_spaces).to eql('4')
Magick::ImageMagickError:
no decode delegate for this image format `TIFF' @ error/constitute.c/ReadImage/501
# ./lib/processors/rmagick.rb:26:in `read'
# ./lib/processors/rmagick.rb:26:in `read_with_processor'
# ./lib/processors/rmagick.rb:18:in `image_to_tif'
# ./lib/rtesseract.rb:164:in `image'
# ./lib/rtesseract.rb:180:in `convert_command'
# ./lib/rtesseract.rb:192:in `convert'
# ./lib/rtesseract.rb:218:in `to_s'
# ./lib/rtesseract.rb:227:in `to_s_without_spaces'
# ./spec/rtesseract_spec.rb:104:in `block (2 levels) in <top (required)>'
11) Rtesseract read image from blob
Failure/Error: test.from_blob(blob)
RTesseract::ConversionError:
RTesseract::ConversionError
# ./lib/rtesseract.rb:211:in `rescue in from_blob'
# ./lib/rtesseract.rb:202:in `from_blob'
# ./spec/rtesseract_spec.rb:115:in `block (2 levels) in <top (required)>'
12) Rtesseract use a instance
Failure/Error: expect(RTesseract.new(Magick::Image.read(@image_tif.to_s).first).to_s_without_spaces).to eql('43XF')
Magick::ImageMagickError:
no decode delegate for this image format `TIFF' @ error/constitute.c/ReadImage/501
# ./spec/rtesseract_spec.rb:123:in `read'
# ./spec/rtesseract_spec.rb:123:in `block (2 levels) in <top (required)>'
13) Rtesseract change image in a block
Failure/Error: test = RTesseract.read(@path.join('images', 'test.png').to_s) {}
RTesseract::ConversionError:
RTesseract::ConversionError
# ./lib/rtesseract.rb:211:in `rescue in from_blob'
# ./lib/rtesseract.rb:202:in `from_blob'
# ./lib/rtesseract.rb:71:in `read'
# ./spec/rtesseract_spec.rb:138:in `block (2 levels) in <top (required)>'
14) Rtesseract get a error
Failure/Error: expect { RTesseract.new(@path.join('images', 'test.jpg').to_s, command: 'tesseract_error').to_s }.to raise_error(RTesseract::ConversionError)
expected RTesseract::ConversionError, got #<Errno::ENOENT: No such file or directory - /var/folders/15/cd64tgzx04g5591y8r4ysr5r0000gn/T/1438456983.880686624.txt> with backtrace:
# ./lib/rtesseract.rb:184:in `read'
# ./lib/rtesseract.rb:184:in `convert_text'
# ./lib/rtesseract.rb:194:in `convert'
# ./lib/rtesseract.rb:218:in `to_s'
# ./spec/rtesseract_spec.rb:164:in `block (3 levels) in <top (required)>'
# ./spec/rtesseract_spec.rb:164:in `block (2 levels) in <top (required)>'
# ./spec/rtesseract_spec.rb:164:in `block (2 levels) in <top (required)>'
Finished in 0.15228 seconds (files took 0.41792 seconds to load)
20 examples, 14 failures
Failed examples:
rspec ./spec/rtesseract_box_char_spec.rb:11 # Rtesseract::BoxChar bounding box by char
rspec ./spec/rtesseract_box_spec.rb:11 # Rtesseract::Box bounding box
rspec ./spec/rtesseract_mixed_spec.rb:16 # Rtesseract::Mixed should translate parts of the image to text
rspec ./spec/rtesseract_spec.rb:24 # Rtesseract translate image to text
rspec ./spec/rtesseract_spec.rb:31 # Rtesseract translate images .png, .jpg, .bmp
rspec ./spec/rtesseract_spec.rb:37 # Rtesseract support diferent processors
rspec ./spec/rtesseract_spec.rb:55 # Rtesseract change the image
rspec ./spec/rtesseract_spec.rb:67 # Rtesseract select the language
rspec ./spec/rtesseract_spec.rb:96 # Rtesseract be configurable
rspec ./spec/rtesseract_spec.rb:103 # Rtesseract crop image
rspec ./spec/rtesseract_spec.rb:110 # Rtesseract read image from blob
rspec ./spec/rtesseract_spec.rb:122 # Rtesseract use a instance
rspec ./spec/rtesseract_spec.rb:137 # Rtesseract change image in a block
rspec ./spec/rtesseract_spec.rb:163 # Rtesseract get a error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment