package frame
Type Members
-
case class
jCluster(points: Array[jPoint]) extends Product with Serializable
proximity detection cluster
-
case class
jFrame(version: String, id: String, timestamp: Timestamp, sensorId: String, objects: Array[String]) extends Product with Serializable
this is alternative to com.nvidia.mdx.core.schema.jMessage
this is alternative to com.nvidia.mdx.core.schema.jMessage
Each frame Message / payload have a one to one correspondence with Frame (Video Frame). A frame comprises of one or more objects detected.
The JSON structure of the frame is { "version": "4.0", "id": "frame-id", "@timestamp": "2018-04-11T04:59:59.828Z", "sensorId": "sensor-id", "objects": [ ".......object-1 attributes...........", ".......object-2 attributes...........", ".......object-3 attributes..........." ] } Example frame with only Primary GIE { "version": "4.0", "id": "frame-id", "@timestamp": "2018-04-11T04:59:59.828Z", "sensorId": "sensor-id", "objects": [ "object-Id | bbox.leftX | bbox.topY | bbox.rightX | bbox.bottomY |object-type", ".......object-2 PGIE attributes...........", ".......object-3 PGIE attributes..........." ] } An example with SGIE where object-type is Vehicle { "version": "4.0", "id": "frame-id", "@timestamp": "2018-04-11T04:59:59.828Z", "sensorId": "sensor-id", "objects": [ "957|1834|150|1918|215|Vehicle|#|sedan|Bugatti|M|blue|CA 444|California|0.8", "..........." ] }
- version
represents version of the schema
- id
represents the video frame-id
- timestamp
represents the camera timestamp
- sensorId
Unique sensor-id
- objects
List of objects, where each object is represented using a string, the attributes of the object are pipe seperated
- Since
v0.1
-
case class
jFrameMessage(version: String, id: String, timestamp: Timestamp, sensorId: String, objects: Array[String], objectCoordinates: Array[jPointWithId], objectCount: Int, clusterThreshold: Double, clusters: Array[jCluster], proximityDetection: Int, rois: Array[jTypeCount] = null, fov: Array[jTypeCount] = null) extends Product with Serializable
enhanced version of com.nvidia.mdx.core.schema.frame.jFrame.
enhanced version of com.nvidia.mdx.core.schema.frame.jFrame. Also have added information about proximity detection or social distancing violation contains cluster of objects which violates social distancing
- version
represents version of the schema
- id
represents the video frame-id
- timestamp
represents the camera timestamp
- sensorId
Unique sensor-id
- objects
List of objects, where each object is represented using a string, the attributes of the object are pipe seperated
- objectCoordinates
Array of Points representing bbox
- objectCount
number of object in the frame
- clusterThreshold
distance threshold in meters, used for proximity detection
- clusters
clusters of objects violating social distancing,
- proximityDetection
number of groups violating social distancing
- rois
array of object-type and their counts
- fov
array of object-type and their counts
- Since
v0.2
- case class jFrameWithOffset(version: String, id: String, timestamp: Timestamp, offset: Long, sensorId: String, objects: Array[String]) extends Product with Serializable
- case class jPoint(x: Double, y: Double) extends Product with Serializable
- case class jPointWithId(id: String, type: String, coordinate: jPoint) extends Product with Serializable
- case class jRoiCount(id: String, count: Int) extends Product with Serializable
- case class jTypeCount(id: String, type: String, count: Int) extends Product with Serializable