Optical card recognition from browser