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
import cv2 | |
import dateutil.parser | |
import PIL | |
import pytesseract | |
# brew install ffmpeg | |
# brew install tesseract | |
# pip install opencv-contrib-python pytesseract imutils python-dateutil | |
def is_date(value: str) -> bool: |
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 "benchmark" | |
iteration = 10000000 | |
Benchmark.bm do |bm| | |
bm.report("method") do | |
class RPC0 | |
def new_address | |
"0" | |
end |