|
Peano
|
Go to the source code of this file.
Namespaces | |
| namespace | create-durham-logo |
| namespace | create |
| -durham-logo | |
Variables | |
| create-durham-logo.Here = os.path.dirname(os.path.abspath(__file__)) | |
| str | create-durham-logo.LogoURL = "https://www.topuniversities.com/sites/default/files/profiles/logos/durham-university_170_large.jpg" |
| str | create-durham-logo.Header |
| str | create-durham-logo.Implementation |
| create-durham-logo.request = urllib.request.Request(LogoURL, headers={"User-Agent": "Mozilla/5.0"}) | |
| float | create-durham-logo.logo = matplotlib.image.imread(urllib.request.urlopen(request), format="jpg") / 255.0 |
| float | create-durham-logo.purple = logo.mean(axis=2) < 0.7 |
| str | create-durham-logo.rows |