axios
.post(‘https://api.ocr.space/parse/image’, {
language: ‘eng’,
isOverlayRequired: ‘true’,
url:
‘https://cdn2.geckoandfly.com/wp-content/uploads/2013/11/011-details-2560x1440-A.jpg’,
isTable: ‘true’,
OCREngine: ‘2’,
scale: ‘true’,
apikey: 'replace your apikey ',
contentType: ‘application/json’
})
.then(res => console.log(res.data))
.catch(err => console.log(err));
response i am getting is invalid file type.