Packages

  • package root
    Definition Classes
    root
  • package com
    Definition Classes
    root
  • package nvidia
    Definition Classes
    com
  • package mdx

    this is the base transform for mdx analytics SDK, the transform comprise of

    this is the base transform for mdx analytics SDK, the transform comprise of


    core : mdx streaming core classes
    xapp : comprise of sample applications

    Definition Classes
    nvidia
  • package core

    this is the core transform for mdx SDK, contains transform and classes for the core mdx functionality

    this is the core transform for mdx SDK, contains transform and classes for the core mdx functionality

    Definition Classes
    mdx
  • package transform

    transform used for any message transformation, image coordinates to real world coordinates

    transform used for any message transformation, image coordinates to real world coordinates

    Definition Classes
    core
  • package pb
    Definition Classes
    transform
  • Calibration
  • CalibrationBase
  • CalibrationE
  • CalibrationI
  • FramesCache

object CalibrationE extends CalibrationBase

reads the calibration information from the JSON config file, and instantiate the transform matrix, ROI etc per sensor

this is alternative to Calibration and used for Euclidean space, the config is broadcast to each of the executors

example usage

 dataset // of Message
	.map(msg => CalibrationE.transform(msg, config))
	.filter(msg => CalibrationE.pointInPolygon(msg.`object`.location, msg.sensor.id, config))

//
Linear Supertypes
CalibrationBase, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CalibrationE
  2. CalibrationBase
  3. Serializable
  4. Serializable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. lazy val appConfig: Config
    Definition Classes
    CalibrationBase
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. lazy val cameraSet: Set[String]

    camera set

    camera set

    Definition Classes
    CalibrationBase
    Annotations
    @transient()
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  8. var config: Map[String, String]

    for performance reason, while running in spark, singleton Calibration is used in a given executor

    for performance reason, while running in spark, singleton Calibration is used in a given executor

    while running outside of spark the below config needs to be set before running any operations

    Definition Classes
    CalibrationBase
  9. def contains(sensorId: String, c: Map[String, String] = Map.empty): Boolean

    checks if cameraSet contains the given sensor

    checks if cameraSet contains the given sensor

    Definition Classes
    CalibrationECalibrationBase
  10. def delete(calibration: String): Unit
  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  13. def euclideanDistance(p1: Point, p2: Point): Double

    function to compute euclidean distance between two points

    function to compute euclidean distance between two points

    Definition Classes
    CalibrationBase
  14. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. def gethomographyMap: Map[String, (Location, Mat, Any)]

    Definition Classes
    CalibrationECalibrationBase
  16. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  17. def haversineDistance(p1: Location, p2: Location): Double

    function to compute great circle distance between two points(lat, lon)

    function to compute great circle distance between two points(lat, lon)

    Definition Classes
    CalibrationBase
  18. lazy val homographyMap: Map[String, (Location, Mat, Map[String, Shape])]

    Map containing sensor-id -> (Location, HMatrix, roi_polygons) HMatrix, transform matrix, maps camera coordinates to global coordinates (in meters) Location, lat-lon representation of the origin (0.0) on which global coordinates are based on roi_polygons, defines the roi/s for a given camera, points falling outside roi/road will be discarded

    Map containing sensor-id -> (Location, HMatrix, roi_polygons) HMatrix, transform matrix, maps camera coordinates to global coordinates (in meters) Location, lat-lon representation of the origin (0.0) on which global coordinates are based on roi_polygons, defines the roi/s for a given camera, points falling outside roi/road will be discarded

    Annotations
    @transient()
  19. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  20. def main(args: Array[String]): Unit

    used for testing

  21. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  24. def pointInPolygon(loc: Location, sensorId: String, configbc: Map[String, String]): Boolean

    checks if the given Location falls within the ROI for the given intersection

    checks if the given Location falls within the ROI for the given intersection

    Definition Classes
    CalibrationECalibrationBase
  25. def pointInPolygon(loc: Coordinate, sensorId: String, configbc: Map[String, String] = Map.empty): Boolean

    checks if the given point falls within the ROI for the given intersection

    checks if the given point falls within the ROI for the given intersection

    Definition Classes
    CalibrationECalibrationBase
  26. def reProjectionError(imageP: Point, expected: Point, hMatrix: Mat): Double

    re projection error

    re projection error

    Definition Classes
    CalibrationECalibrationBase
  27. def sensorMap: Map[String, Sensor]

    lookup table/map for id -> Sensor

    lookup table/map for id -> Sensor

    Definition Classes
    CalibrationECalibrationBase
  28. lazy val sensors: Array[Sensor]

    array of sensors/sensors, read from the configuration file

    array of sensors/sensors, read from the configuration file

    Definition Classes
    CalibrationBase
    Annotations
    @transient()
  29. lazy val spatialContext: JtsSpatialContext
  30. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  31. def toString(): String
    Definition Classes
    AnyRef → Any
  32. def tranformBbox(bbox: Bbox, sensorId: String): (Coordinate, Location)

    Transform 4 corners of bbox image coordinates to a single real world coordinates based on Homography Matrix for a given sensor-id

    Transform 4 corners of bbox image coordinates to a single real world coordinates based on Homography Matrix for a given sensor-id


    Also transform real world coordinates (cartesian) to lat-lon, with respect to a given origin. The transformation matrix and the origin are initialized from an external configuration if transformation matrix is not present, it will return image coordinates

    Definition Classes
    CalibrationECalibrationBase
  33. def tranformPoint(p: Point, sensorId: String, configbc: Map[String, String] = Map.empty): Point
  34. def transform(msg: Message, configuration: Map[String, String] = Map.empty): Message

    transform image coordinates to real world coordinates Also updates the location/place based on configuration

    transform image coordinates to real world coordinates Also updates the location/place based on configuration

    Definition Classes
    CalibrationBase
  35. def transformF(frame: Frame, configuration: Map[String, String] = Map.empty): FrameMessage

    transform, enhance frames with ROI, FOV count, proximity detection

  36. def transformFList(frames: List[Frame], configuration: Map[String, String] = Map.empty): List[FrameMessage]

    transform, enhance frames with ROI, FOV count, proximity detection

  37. def update(calibration: String): Unit
  38. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  40. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from CalibrationBase

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped