Current section
Files
Jump to
Current section
Files
lib/itsfound_rekognition.ex
defmodule ItsfoundRekognition do
@moduledoc """
this is the public api for the rekognition functions
it should be called like this:
ItsfoundRekognition.detect_label("1d826fd7-38b1-4349-bdc9-f2990f590a11", "png", &ItsfoundRekognition.ImageLabelParser.parse_top/1)
"""
alias ItsfoundRekognition.{LoggerImageResponseParser, ProcessImage}
def detect_label(
image_uuid,
ending,
process_func \\ &LoggerImageResponseParser.parse/1
) do
ProcessImage.recognise_label(image_uuid, ending, process_func)
end
end