I personally just use pipes and tesseract, no need for another tool imo:
flameshot gui --raw | tesseract stdin stdout -l eng | xclip -in -selection clipboard