Same as decode, but raises an exception when image cannot be decoded.
decode
file should be the path to the image file to decode, as a string.
file
Example:
path = "./no_encoded_image.png" ZXing.decode(path) #=> ZXing::UndecodableError
38 39 40
# File 'lib/zxing.rb', line 38 def self.decode!(file) Decoder.decode! normalize(file) end