Dominevo
ReferenceHTTP API

plateGallery

The plateGallery router: 18 methods of the plate-gallery capability, with tier, scope, input and output.

Capability plate-gallery · scope system · mode singleton · source packages/types/src/capabilities/plate-gallery.cap.ts:122.

Every method is called at /trpc/plateGallery.<method> — queries with GET, mutations with POST. See How to call and Authorization.

MethodKindTierToken scopeViewer
listPlatesqueryprotectedviewwith the plate-assignment feature
getPlateByTrackqueryprotectedviewyes
getPlateMediaqueryprotectedviewwith the plate-assignment feature
searchPlatesqueryprotectedviewwith the plate-assignment feature
suggestPlateClustersqueryprotectedviewwith the plate-assignment feature
correctPlateTextmutationadminadmin onlywith the plate-assignment feature
deletePlatemutationadminadmin onlywith the plate-assignment feature
listVehiclesqueryprotectedviewwith the plate-assignment feature
createVehiclemutationadminadmin onlywith the plate-assignment feature
renameVehiclemutationadminadmin onlywith the plate-assignment feature
deleteVehiclemutationadminadmin onlywith the plate-assignment feature
listVehicleSamplesqueryprotectedviewwith the plate-assignment feature
removeVehicleSamplemutationadminadmin onlywith the plate-assignment feature
moveVehicleSamplemutationadminadmin onlywith the plate-assignment feature
assignPlatemutationadminadmin onlywith the plate-assignment feature
unassignPlatemutationadminadmin onlywith the plate-assignment feature
assignPlatesmutationadminadmin onlywith the plate-assignment feature
unassignPlatesmutationadminadmin onlywith the plate-assignment feature

plateGallery.listPlates

  • Kind: query — GET /trpc/plateGallery.listPlates
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability plate-gallery, or category system
  • Viewer: with the plate-assignment feature
  • Try it: open /system/api-explorer?method=plateGallery.listPlates on your hub

Input

{ deviceId?: number; limit?: number; includeCrops?: boolean }?

Output

({ plateId: string; deviceId: number; trackId: string; timestamp: number; text: string; score: number; corrected: boolean; recognizedVehicleId?: string; vehicleName?: string; assigned: boolean; plateBbox?: BoundingBoxSchema; keyFrameMediaId?: number; base64?: string; cropUrl?: string; cropMissReason?: string })[]

Shapes: BoundingBoxSchema

plateGallery.getPlateByTrack

  • Kind: query — GET /trpc/plateGallery.getPlateByTrack
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability plate-gallery, or category system
  • Viewer: yes
  • Try it: open /system/api-explorer?method=plateGallery.getPlateByTrack on your hub

Input

{ deviceId: number; trackId: string }

Output

{ plateId: string; deviceId: number; trackId: string; timestamp: number; text: string; score: number; corrected: boolean; recognizedVehicleId?: string; vehicleName?: string; assigned: boolean; plateBbox?: BoundingBoxSchema; keyFrameMediaId?: number; base64?: string; cropUrl?: string; cropMissReason?: string } | null

Shapes: BoundingBoxSchema

plateGallery.getPlateMedia

  • Kind: query — GET /trpc/plateGallery.getPlateMedia
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability plate-gallery, or category system
  • Viewer: with the plate-assignment feature
  • Try it: open /system/api-explorer?method=plateGallery.getPlateMedia on your hub

Input

{ plateId: string }

Output

({ mediaId: number; kind: string; url: string; sizeBytes: number; timestamp: number })[]

plateGallery.searchPlates

  • Kind: query — GET /trpc/plateGallery.searchPlates
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability plate-gallery, or category system
  • Viewer: with the plate-assignment feature
  • Try it: open /system/api-explorer?method=plateGallery.searchPlates on your hub

Input

{ text: string; maxDistance?: number; limit?: number; includeCrops?: boolean }

Output

({ plateId: string; deviceId: number; trackId: string; timestamp: number; text: string; score: number; corrected: boolean; recognizedVehicleId?: string; vehicleName?: string; assigned: boolean; plateBbox?: BoundingBoxSchema; keyFrameMediaId?: number; base64?: string; cropUrl?: string; cropMissReason?: string })[]

Shapes: BoundingBoxSchema

plateGallery.suggestPlateClusters

  • Kind: query — GET /trpc/plateGallery.suggestPlateClusters
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability plate-gallery, or category system
  • Viewer: with the plate-assignment feature
  • Try it: open /system/api-explorer?method=plateGallery.suggestPlateClusters on your hub

Input

{ maxDistance?: number; minClusterSize?: number; limit?: number }?

Output

({ plateIds: string[]; representativePlateId: string; representativeText: string; size: number; cohesion: number })[]

plateGallery.correctPlateText

  • Kind: mutation — POST /trpc/plateGallery.correctPlateText
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: with the plate-assignment feature
  • Try it: open /system/api-explorer?method=plateGallery.correctPlateText on your hub

Input

{ plateId: string; text: string }

Output

void

plateGallery.deletePlate

  • Kind: mutation — POST /trpc/plateGallery.deletePlate
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: with the plate-assignment feature
  • Try it: open /system/api-explorer?method=plateGallery.deletePlate on your hub

Input

{ plateId: string }

Output

void

plateGallery.listVehicles

  • Kind: query — GET /trpc/plateGallery.listVehicles
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability plate-gallery, or category system
  • Viewer: with the plate-assignment feature
  • Try it: open /system/api-explorer?method=plateGallery.listVehicles on your hub

Input

{ includeCrops?: boolean }?

Output

({ id: string; name: string; sampleCount: number; coverMediaId?: number; coverBase64?: string })[]

plateGallery.createVehicle

  • Kind: mutation — POST /trpc/plateGallery.createVehicle
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: with the plate-assignment feature
  • Try it: open /system/api-explorer?method=plateGallery.createVehicle on your hub

Input

{ name: string }

Output

{ id: string; name: string; sampleCount: number; coverMediaId?: number; coverBase64?: string }

plateGallery.renameVehicle

  • Kind: mutation — POST /trpc/plateGallery.renameVehicle
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: with the plate-assignment feature
  • Try it: open /system/api-explorer?method=plateGallery.renameVehicle on your hub

Input

{ id: string; name: string }

Output

void

plateGallery.deleteVehicle

  • Kind: mutation — POST /trpc/plateGallery.deleteVehicle
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: with the plate-assignment feature
  • Try it: open /system/api-explorer?method=plateGallery.deleteVehicle on your hub

Input

{ id: string }

Output

void

plateGallery.listVehicleSamples

  • Kind: query — GET /trpc/plateGallery.listVehicleSamples
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability plate-gallery, or category system
  • Viewer: with the plate-assignment feature
  • Try it: open /system/api-explorer?method=plateGallery.listVehicleSamples on your hub

Input

{ vehicleId: string }

Output

({ id: string; text: string; score: number; addedAt: number; deviceId?: number; base64?: string; mediaId?: number; keyFrameMediaId?: number; plateBbox?: BoundingBoxSchema })[]

Shapes: BoundingBoxSchema

plateGallery.removeVehicleSample

  • Kind: mutation — POST /trpc/plateGallery.removeVehicleSample
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: with the plate-assignment feature
  • Try it: open /system/api-explorer?method=plateGallery.removeVehicleSample on your hub

Input

{ vehicleId: string; sampleId: string }

Output

void

plateGallery.moveVehicleSample

  • Kind: mutation — POST /trpc/plateGallery.moveVehicleSample
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: with the plate-assignment feature
  • Try it: open /system/api-explorer?method=plateGallery.moveVehicleSample on your hub

Input

{ sampleId: string; toVehicleId: string }

Output

void

plateGallery.assignPlate

  • Kind: mutation — POST /trpc/plateGallery.assignPlate
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: with the plate-assignment feature
  • Try it: open /system/api-explorer?method=plateGallery.assignPlate on your hub

Input

{ plateId: string; vehicleId: string }

Output

void

plateGallery.unassignPlate

  • Kind: mutation — POST /trpc/plateGallery.unassignPlate
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: with the plate-assignment feature
  • Try it: open /system/api-explorer?method=plateGallery.unassignPlate on your hub

Input

{ plateId: string }

Output

void

plateGallery.assignPlates

  • Kind: mutation — POST /trpc/plateGallery.assignPlates
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: with the plate-assignment feature
  • Try it: open /system/api-explorer?method=plateGallery.assignPlates on your hub

Input

{ plateIds: string[]; vehicleId: string }

Output

{ assigned: number; failed: string[] }

plateGallery.unassignPlates

  • Kind: mutation — POST /trpc/plateGallery.unassignPlates
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: with the plate-assignment feature
  • Try it: open /system/api-explorer?method=plateGallery.unassignPlates on your hub

Input

{ plateIds: string[] }

Output

{ unassigned: number; failed: string[] }