org.llm4s.imageprocessing

Members list

Type members

Classlikes

case class BoundingBox(x: Int, y: Int, width: Int, height: Int)

Bounding box coordinates for detected objects.

Bounding box coordinates for detected objects.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class DetectedEmotion(emotion: String, confidence: Double)

Represents detected emotions in an image.

Represents detected emotions in an image.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class DetectedObject(label: String, confidence: Double, boundingBox: BoundingBox)

Represents a detected object in an image.

Represents a detected object in an image.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class ImageAnalysisResult(description: String, confidence: Double, tags: List[String], objects: List[DetectedObject], emotions: List[DetectedEmotion], text: Option[String], metadata: ImageMetadata)

Result of image analysis operations.

Result of image analysis operations.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class ImageEmbedding(vector: Array[Float], dimensions: Int, model: String, imagePath: String, metadata: ImageMetadata)

Image embeddings for similarity search and multimodal operations.

Image embeddings for similarity search and multimodal operations.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class ImageEmbeddingOptions(model: String, normalize: Boolean, batchSize: Int)

Options for image embedding generation.

Options for image embedding generation.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
sealed trait ImageFormat

Represents different image formats supported by the system.

Represents different image formats supported by the system.

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object GIF
object JPEG
object PNG
object WEBP
object ImageFormat

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
case class ImageMetadata(originalPath: Option[String], createdAt: Instant, processedAt: Instant, operations: List[ImageOperation], colorSpace: Option[String], dpi: Option[Int], hasAlpha: Boolean, compressionRatio: Option[Double])

Metadata associated with an image.

Metadata associated with an image.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
sealed trait ImageOperation

Represents various image processing operations.

Represents various image processing operations.

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Blur
class Brightness
class Contrast
class Crop
object Grayscale
object Normalize
class Resize
class Rotate
Show all

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type

Factory object for creating image processing clients.

Factory object for creating image processing clients.

This provides a unified API for image preprocessing capabilities including:

  • Image format conversion and resizing
  • Image analysis and description generation
  • Integration with vision-enabled LLMs

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type

Main interface for image processing operations.

Main interface for image processing operations.

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
sealed trait MediaType

Type-safe media types for image processing.

Type-safe media types for image processing.

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Bmp
object Gif
object Jpeg
object Png
object Tiff
object WebP
Show all
object MediaType

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
MediaType.type
case class ProcessedImage(data: Array[Byte], format: ImageFormat, width: Int, height: Int, metadata: ImageMetadata)

Represents a processed image with metadata.

Represents a processed image with metadata.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all