1. A system comprising: a memory that stores instructions; and one or more processors configured by the instructions to perform operations comprising: accessing an image comprising a depiction of a page region; determining portions of the image depicting text within the page region; identifying a line segment depicted in the image, the line segment having a first part within one or more of the portions of the image depicting text and a second part outside of the portions of the image depicting text; identifying a color of the line segment, based on the second part of the line segment depicted in the image outside of the portions of the image depicting text; determining a difference value between the color of the line segment and a color of each element of the portions of the image depicting text; and identifying the text by performing optical character recognition on the portions of the image depicting text while ignoring elements within the portions of the image depicting text that have the color of the line segment.