Researchers Facebook presented a new self-supervised AI model, “TextStyleBrush” in the Newsroom. Using an image of a word, it can edit and replace the text by copying the font or visual style in which it was written.
The tool works both in handwritten text and in real words. This is something very impressive, because - as Facebook itself states - AI must understand "unlimited" text styles.
You know that there are different types of calligraphy, but also a lot of stylistic details to consider. What if someone writes with slants or curves? Or if the surface where is the text making it difficult to read? What about background clutter or image noise?
Facebook explained that the TextStyleBrush model works in a similar way operation of style tools in text editors, but for text aesthetics in images:
It exceeds the last word of accuracy in both automated tests and user studies for any type of text. (…) We use a more holistic approach to education and disconnect the content of a text image from all aspects of its appearance throughout the word frame. The representation of the overall look can then be applied as a monochrome metaphor.
If you want a more technical analysis of the functions of TextStyleBrush, you can read it full article on Facebook AI blog.
The Google Translate mobile app has a function similar to Facebook's new AI app in that it replaces text, but it aims to solve a different problem, the translation of the text in a different language.