/** * Draw the rectangle and outline the dominant @{@link Emotion} * * @param emotion the emotion * @return this */ @NotNull public ImageOverlayBuilder outlineDominantEmotionOnImage(@NotNull Emotion emotion) { return outlineDominantEmotionOnImage(emotion, RectangleTextPosition.TOP_OF); }
/** * Draw the rectangle and outline the dominant @{@link Emotion} for all faces. * * @param emotion the emotion * @param textPosition the location of the text relative to the face location * @return this */ @NotNull public ImageOverlayBuilder outlineDominantEmotionsOnImage(@NotNull List<Emotion> emotion, @NotNull RectangleTextPosition textPosition) { emotion.forEach((emotion1) -> outlineDominantEmotionOnImage(emotion1, textPosition)); return this; }