(build-topology app builder)
Make the spot photo worker topology.
Make the spot photo worker topology.
Flickr licenses that allow photos to be used on commercial sites.
Flickr licenses that allow photos to be used on commercial sites.
(config & [opts])
Returns the configuration for the app.
Returns the configuration for the app.
(download-photo service photo)
Download the image used for labeling.
Download the image used for labeling.
(exclude-existing-photos db)
Return a transducer that removes already saved photos.
Return a transducer that removes already saved photos.
Photos with these labels are excluded.
Photos with these labels are excluded.
(exclude-photos-labeled labels)
Exclude photos that are labeled with any of labels
.
Exclude photos that are labeled with any of `labels`.
(import-photo! service photo)
(import-photos {:keys [db flickr vision] :as env} spot & [{:keys [max-photos]}])
Import Flickr photos for spot
.
Import Flickr photos for `spot`.
Photos with these labels are included.
Photos with these labels are included.
(include-photos-labeled labels)
Include photos that are labeled with any of labels
.
Include photos that are labeled with any of `labels`.
(label-name s)
Return the lower cased and trimmed label for s
.
Return the lower cased and trimmed label for `s`.
(label-photos vision-service spot photos)
Label the photos
using the Google Vision API.
Label the `photos` using the Google Vision API.
(label-photos-in-batches vision spot)
Returns a transducer that downloads and labels photos.
Returns a transducer that downloads and labels photos.
(label-size sizes min-width max-width)
Return the size of photo
used for labeling.
Return the size of `photo` used for labeling.
(log-labels labels)
Log the labels
from the Vision API.
Log the `labels` from the Vision API.
(log-search-criteria {:keys [lat lon text radius tags sort]} photos)
Log the Flickr search criteria.
Log the Flickr search criteria.
(make-pipeline {:keys [db flickr vision] :as service} spot max-photos)
(parse-location {:keys [latitude longitude]})
Parse the Flickr location response.
Parse the Flickr location response.
(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.
(photo-label-set photo)
Return the labels of photo
as a set.
Return the labels of `photo` as a set.
(save-photo! db spot photo)
Save the Flickr photo
of spot
.
Save the Flickr `photo` of `spot`.
(save-photo-label-scores! db photo labels)
Save the scores labels
of the Flickr photo
.
Save the scores `labels` of the Flickr `photo`.
(save-photo-labels! db labels)
Save the labels of the Flickr photo
to db
.
Save the labels of the Flickr `photo` to `db`.
(search-criterias country {:keys [location] :as spot})
Return a vector of search criterias for spot
.
Return a vector of search criterias for `spot`.
(search-photos-by-criteria db flickr spot criteria)
Search photos of spot
on Flickr by criteria
.
Search photos of `spot` on Flickr by `criteria`.
(size-by-name sizes name)
Find the size
of name
.
Find the `size` of `name`.
The topics used by the page views app.
The topics used by the page views app.
(try-import-photos app spot & [opts])
Import Flickr photos for spot
.
Import Flickr photos for `spot`.
(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.
(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.
(worker & [opts])
Returns a new spot photo worker.
Returns a new spot photo worker.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close