A Novel Text Detection System Based on Character and Link Energies