object jCalibrationI extends jCalibrationBase
reads the calibration information from the JSON config file, and instantiate sensor details, ROI etc per sensor
there is not transform matrix here, only used for image coordinates,
example usage
dataset // of Message .map(msg => CalibrationI.transform(msg, config)) .filter(msg => CalibrationI.pointInPolygon(msg.`object`.location, msg.sensor.id, config)) //
- Alphabetic
- By Inheritance
- jCalibrationI
- jCalibrationBase
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
lazy val
appConfig: Config
- Definition Classes
- jCalibrationBase
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
lazy val
cameras: Array[Sensor]
array of sensors/sensors, read from the configuration file
array of sensors/sensors, read from the configuration file
- Definition Classes
- jCalibrationI → jCalibrationBase
- Annotations
- @transient()
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
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
- jCalibrationBase
-
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
- jCalibrationI → jCalibrationBase
- def delete(calibration: String): Unit
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
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
- jCalibrationBase
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
haversineDistance(p1: jLocation, p2: jLocation): 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
- jCalibrationBase
-
lazy val
homographyMap: Map[String, (jLocation, Null, 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()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
main(args: Array[String]): Unit
used for testing
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
pointInPolygon(loc: jLocation, 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
- jCalibrationI → jCalibrationBase
-
def
pointInPolygon(loc: jCoordinate, sensorId: String, configbc: Map[String, String] = Map.empty): Boolean
checks if the given point falls within any of the ROI for the given intersection
checks if the given point falls within any of the ROI for the given intersection
- Definition Classes
- jCalibrationI → jCalibrationBase
-
def
reProjectionError(imageP: Point, expected: Point, hMatrix: Mat): Double
re projection error
re projection error
- Definition Classes
- jCalibrationI → jCalibrationBase
-
lazy val
sensorMap: Map[String, Sensor]
lookup table/map for id -> Sensor
lookup table/map for id -> Sensor
- Definition Classes
- jCalibrationBase
- Annotations
- @transient()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
tranformBbox(bbox: jBbox, sensorId: String): (jCoordinate, jLocation)
Transform image coordinates bbox to latitude-longitude based on Homography Matrix for a given sensor-id
Also transform lat-lon to Global coordinates (cartesian) , with respect to a given origin
The transform matrix and the origin and initialized from a external configuration
returns Global coordinates and lat-lonTransform image coordinates bbox to latitude-longitude based on Homography Matrix for a given sensor-id
Also transform lat-lon to Global coordinates (cartesian) , with respect to a given origin
The transform matrix and the origin and initialized from a external configuration
returns Global coordinates and lat-lon- Definition Classes
- jCalibrationI → jCalibrationBase
- def tranformPoint(p: Point, sensorId: String, configbc: Map[String, String] = Map.empty): Point
-
def
transform(msg: jMessage, configuration: Map[String, String] = Map.empty): jMessage
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
- jCalibrationI → jCalibrationBase
-
def
transformF(frame: jFrame, configuration: Map[String, String] = Map.empty): jFrameMessage
transform, enhance frames with ROI count
- def update(calibration: String): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated