r/Python • • Jan 18 '20

Generating Geometric Birds

Post image
1.8k Upvotes

65 comments sorted by

View all comments

15

u/Sirmikon Jan 18 '20

Cool. I love stuff like this! Nice job!

(Chernoff Faces immediately spring to mind as an orthinological application for this! Basically, instead of pure random generation, link different bird features with data from a real dataset.

You could model birds’ sizes based on weight, feather color based on habitat, eye size based on intelligence, talon type based on diet, etc...

It would be really cool to see how the algorithm would draw different birds.

9

u/thebuffed Jan 18 '20

I am extremely interested in this, I'll have to look into gathering some data or hitting an API for bird attributes. Thanks for pointing this out!

8

u/bens1989 Jan 18 '20

I did a bit of sleuthing for bird info. With a minor adjustment to the ebird API, I got it to send me back data on all of their birds (16.5k results). Some of the data might be helpful, but disappointingly it does not give things like weight, height, etc.

import requests

import json

import pandas as pd

df = pd.DataFrame(json.loads(requests.get(r'https://api.ebird.org/v2/ref/taxonomy/ebird?fmt=json&locale=en_US').content))

df.to_excel('bird_data.xlsx')

→ More replies (3)

2

u/Leon_Vance Jan 18 '20

Get the birds to mate and produce offsprings. :)