A Node.js script for uploading image URLs from excel to Azure vision API.
-
Clone the repository
-
Install required dependencies
npm install
-
Move your excel spreadsheet to the cloned directory and rename it to
images.xlsx
-
On line 23 of
app.js
, changedata[i].vcImagePath
to the column heading in your spreadsheet that contains the image URLs. -
Create a
variables.env
file to store your Azure API key. Alternatively, replaceprocess.env.SUBKEY
on line 31 ofapp.js
with it. -
Run the script with
node app.js 5
Where 5 indicates the index of the image to be sent to the API. If no argument is provided, the default is 0.
-
Look for the JSON output in the newly created
output
directory!
MIT.