Last active
February 28, 2018 04:04
-
-
Save arafatkatze/3777cdf2aad3deedd8805ad27022cd4b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'tensorflow' | |
# Loading Saved Model | |
saved_model = Tensorflow::Savedmodel.new | |
saved_model.LoadSavedModel(Dir.pwd + '/break-captcha-protobuf', ['serve'], nil) | |
# Read the image file and specify the image contents in a Tensor | |
image_file = File.new(Dir.pwd + '/break-captcha-protobuf/captcha-1.png', "r") | |
feeds_tensor = Tensorflow::Tensor.new(image_file.read) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment