An improved fingerprint orientation field extraction method based on quality grading scheme