0

I am hoping to do some image classification on pills.

The National Library of Medicine has an pill image database, RxImage website. It has an API which you can retrieve images with specific requests in the form of JSON files. (Sample API request builder).

I want to download the labelled image dataset in order to do some image classification on it in python. Is there a way to do this? (preferably in python)

Ralf
  • 16,086
  • 4
  • 44
  • 68
A. N.
  • 41
  • 1
  • 2
  • Just for clarification, are you refering to the `imageUrl` key? Like these, [here](https://imgur.com/a/irD2V)? – kstullich Nov 24 '17 at 03:32
  • Basically, I want to download all of the images, but also have the data of their colour, shape, imprint that is in the respective JSON files. – A. N. Nov 24 '17 at 04:12
  • Seems like a pretty simple thing. Send off the request, loop through all the JSON grabbing all necessary info. Then grab the `imageUrl` and do something like [this](https://stackoverflow.com/a/21595698/6771714) with it. – kstullich Nov 24 '17 at 04:15
  • How do I send a JSON request that gets every image in the database? – A. N. Nov 24 '17 at 04:20
  • Look into the `requests` library. And just look around SO about how to send HTTP requests. There are hundreds of posts. – kstullich Nov 24 '17 at 04:21

0 Answers0