Commit 5520fd9f authored by anonym's avatar anonym
Browse files

Remove comment about OCR, and commented OCR code.

Sikuli's OCR capabilities are way too bad, so let's forget about this.
parent 271327fb
......@@ -70,20 +70,6 @@ end
def usb_install_helper(name)
@screen.wait('USBTailsLogo.png', 10)
# Here we'd like to select USB drive using #{name}, but Sikuli's
# OCR seems to be too unreliable.
# @screen.wait('USBTargetDevice.png', 10)
# match = @screen.find('USBTargetDevice.png')
# region_x = match.x
# region_y = match.y + match.h
# region_w = match.w*3
# region_h = match.h*2
# ocr = Sikuli::Region.new(region_x, region_y, region_w, region_h).text
# STDERR.puts ocr
# # Unfortunately this results in almost garbage, like "|]dev/sdm"
# # when it should be /dev/sda1
if @screen.exists("USBCannotUpgrade.png")
raise UpgradeNotSupported
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment