Improving Product Recognition with Metric Learning