Close

Getting Images to Create Provisional Models

A project log for Ai Equiped Wasp (and Asian Hornet) Sentry Gun

A powerful laser guided by cameras will vaporize these pests in flight. Hopefully.

capt-flatus-oflahertyCapt. Flatus O'Flaherty ☠ 10/31/2018 at 14:340 Comments

To test the system, I thought it would be better to set it up for detecting local honey bees, Apis melifera melifera, and the common wasp, Vespula vulgaris. Note, that the common wasp is not generally considered to be a serious pest for beekeepers in the UK. The Latin name for the Asian hornet is Vespa mandarinia.

There's a database of images on the interweb called 'ImageNet', which can be accessed with the following instructions:

1. Browse http://www.image-net.org/ for the correct synset:

2. Click on 'wordnet ids' (top right) and copy the number displayed eg n02213543.

3, Add the number to the end of this address: http://image-net.org/api/text/imagenet.synset.geturls?wnid= eg. http://image-net.org/api/text/imagenet.synset.geturls?wnid=n02213543

4. Open the webpage from http://image-net.org/api/text/imagenet.synset.geturls?wnid=n02213543

5. There should be a list of URLs .... copy and paste the list into a text file and name it 'urls'.

6. CD to the folder: eg

$ cd /media/goat/C999-F05F/images/Wasp_images_01/ 

7. Run:

$ wget -i urls -t 2 --timeout=30  

.... and the folder will fill up with the downloaded images. There's some URL sets that I put together here at Github.

Discussions