I am using Google Cloud Vision API for scanning the business card using React-Native and the OCR part is working well. This is the my current archivement.
As you can see in the second image, the app is recognizing the text as well and I want to map it to key. Means I want to map "JOHN" to "First Name" and "SMITH" to "Last Name", +0 123 456 789 324 to "Phone Number".
'https://vision.googleapis.com/v1/images:annotate?key=' +
'YOUR_API_KEY',
{
method: 'POST',
body: JSON.stringify({
requests: [
{
image: {content: this.state.image.base64},
features: [{type: 'TEXT_DETECTION'}],
},
],
}),
},
This is my current payload. What do you think should I use for labeling the text? Please teach me as soon as possible.