Liking cljdoc? Tell your friends :D

burningswell.streams.spots.flickr-photos


commercial-licenses

Flickr licenses that allow photos to be used on commercial sites.

Flickr licenses that allow photos to be used on commercial sites.
raw docstring

config

(config & [opts])

download-image

(download-image photo)

Download the image used for labeling.

Download the image used for labeling.
raw docstring

exclude-existing-photos

(exclude-existing-photos db)

Return a transducer that removes already saved photos.

Return a transducer that removes already saved photos.
raw docstring

exclude-labels

Photos with these labels are excluded.

Photos with these labels are excluded.
raw docstring

exclude-photos-labeled

(exclude-photos-labeled labels)

Exclude photos that are labeled with any of labels.

Exclude photos that are labeled with any of `labels`.
raw docstring

import-photos

(import-photos {:keys [db flickr vision], :as env}
               spot
               &
               [{:keys [max-photos]}])

Import Flickr photos for spot.

Import Flickr photos for `spot`.
raw docstring

include-labels

Photos with these labels are included.

Photos with these labels are included.
raw docstring

include-photos-labeled

(include-photos-labeled labels)

Include photos that are labeled with any of labels.

Include photos that are labeled with any of `labels`.
raw docstring

label-name

(label-name s)

Return the lower cased and trimmed label for s.

Return the lower cased and trimmed label for `s`.
raw docstring

label-photos

(label-photos vision-service spot photos)

Label the photos using the Google Vision API.

Label the `photos` using the Google Vision API.
raw docstring

label-photos-in-batches

(label-photos-in-batches vision spot)

Returns a transducer that downloads and labels photos.

Returns a transducer that downloads and labels photos.
raw docstring

label-size

(label-size sizes min-width max-width)

Return the size of photo used for labeling.

Return the size of `photo` used for labeling.
raw docstring

log-labels

(log-labels labels)

Log the labels from the Vision API.

Log the `labels` from the Vision API.
raw docstring

log-search-criteria

(log-search-criteria {:keys [lat lon text radius tags sort]} photos)

Log the Flickr search criteria.

Log the Flickr search criteria.
raw docstring

make-pipeline

(make-pipeline db flickr vision spot max-photos)

make-topology

(make-topology env)

Make the spot photo worker topology.

Make the spot photo worker topology.
raw docstring

parse-location

(parse-location {:keys [latitude longitude]})

Parse the Flickr location response.

Parse the Flickr location response.
raw docstring

parse-size

(parse-size {:keys [width height], :as size})

Parse the Flickr photo size response. The Flickr API returns width and height sometimes a string, sometimes as an integer.

Parse the Flickr photo size response. The Flickr API returns width
and height sometimes a string, sometimes as an integer.
raw docstring

photo-label-set

(photo-label-set photo)

Return the labels of photo as a set.

Return the labels of `photo` as a set.
raw docstring

resize-photo!

(resize-photo! env photo)

Resize the spot photo.

Resize the spot `photo`.
raw docstring

save-photo!

(save-photo! db spot photo)

Save the Flickr photo of spot.

Save the Flickr `photo` of `spot`.
raw docstring

save-photo-label-scores!

(save-photo-label-scores! db photo labels)

Save the scores labels of the Flickr photo.

Save the scores `labels` of the Flickr `photo`.
raw docstring

save-photo-labels!

(save-photo-labels! db labels)

Save the labels of the Flickr photo to db.

Save the labels of the Flickr `photo` to `db`.
raw docstring

search-criterias

(search-criterias country {:keys [location], :as spot})

Return a vector of search criterias for spot.

Return a vector of search criterias for `spot`.
raw docstring

search-photos-by-criteria

(search-photos-by-criteria db flickr spot criteria)

Search photos of spot on Flickr by criteria.

Search photos of `spot` on Flickr by `criteria`.
raw docstring

size-by-name

(size-by-name sizes name)

Find the size of name.

Find the `size` of `name`.
raw docstring

update-photo-details

(update-photo-details flickr photo)

Fetch the details of the Flickr photo and return an updated photo.

Fetch the details of the Flickr `photo` and return an updated photo.
raw docstring

update-photo-owner

(update-photo-owner flickr photo)

Fetch the owner of the Flickr photo and return an updated photo.

Fetch the owner of the Flickr `photo` and return an updated photo.
raw docstring

worker

(worker & [opts])

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close