Help Center
  • Welcome to KBY-AI
  • Product
    • Face Liveness Detection SDK, Face Recognition SDK
      • Basic SDK - Mobile
        • Basic SDK - Android
        • Basic SDK - iOS
      • Standard SDK - Mobile
        • Standard SDK - Android
        • Standard SDK - iOS
      • Premium SDK - Mobile
        • Premium SDK - Android
        • Premium SDK - iOS
      • Face Liveness Detection SDK - Server
      • Face Recognition SDK - Server
    • ID Card Recognition SDK
      • ID Card Recognition SDK - Android
      • ID Card Recognition SDK - iOS
      • ID Card Recognition SDK - Server
      • Supported Documents
      • Result Parsing
    • ID Document Liveness Detection SDK
    • ID Document Auto Capture Web
    • Palm Recognition SDK
      • Palmprint Recognition SDK - Server
      • Palmvein Recognition SDK - Server
    • Automatic License Plate/Number Recognition SDK
      • License Plate Recognition-Server
      • License Plate Recognition-Flutter
      • License Plate Recognition-Android
    • Computer Vision Solutions
      • Fire/Smoke Detection-Server
  • Demo Projects
    • Mobile (Android, iOS)
      • FaceLivenessDetection - Android
      • FaceLivenessDetection - iOS
      • FaceRecognition - Android
      • FaceRecognition - iOS
      • FaceRecognition - Flutter
      • FaceRecognition - Ionic-Cordova
      • FaceRecognition - React-Native
      • FaceAttribute - Android
      • FaceAttribute - iOS
      • FaceAttribute - Flutter
      • IDCardRecognition - Android
      • IDCardRecognition - iOS
      • License Plate Recognition-Flutter
      • License Plate Recognition-Android
    • Server (Windows, Linux)
      • FaceLivenessDetection - Windows
      • FaceLivenessDetection - Docker
      • FaceLivenessDetection - C# - .NET
      • FaceRecognition - Windows
      • FaceRecognition - Docker
      • FaceRecognition - C# - .NET
      • IDCardRecognition - Windows
      • IDCardRecognition - Docker
      • IDCardRecognition - C# - .NET
      • Palm Print Recognition SDK - Docker
      • Palm Vein Recognition SDK - Docker
      • License Plate Recognition-Docker
      • License Plate Recognition - C# - .NET
  • FAQ
    • How can I set up a Kubernetes system?
    • Has KBY-AI's facial algorithm been certified by a reliable standard measurement authority?
    • Accelerating KBY-AI SDKs with Kubernetes Configuration
Powered by GitBook
On this page
  • Features
  • License
  • 1. Linux
  • 2. Windows
  • Import SDK
  • Initializing SDK
  • APIs
  • 1. Getting License Number & Coordinate
  • 2. Analyzing the result from SDK
  • 3. Free Memory
  1. Product
  2. Automatic License Plate/Number Recognition SDK

License Plate Recognition-Server

This solutions stands for ANPR/ALPR(Automatic Number/License Plate Recognition), LPR, vehicle number plate recognition, plate number reader, vehicle scanner, vehicle detection for server SDKs

PreviousAutomatic License Plate/Number Recognition SDKNextLicense Plate Recognition-Flutter

Last updated 8 days ago

KBY-AI's LPR solutions utilize artificial intelligence and machine learning to greatly surpass legacy solutions. Now, in real-time, users can receive a vehicle's license plate number.

Automatic license-plate recognition (ALPR) is a technology that uses OCR(optical character recognition) on images to read vehicle registration plates. It can use existing closed-circuit television, road-rule enforcement cameras, or cameras specifically designed for the task. ALPR can be used by police forces around the world for law enforcement purposes, including to check if a vehicle is registered or licensed. It is also used for electronic toll collection on pay-per-use roads and as a method of cataloguing the movements of traffic, for example by highways agencies.

Features

License

We offer lifetime license(perpetual license) based on machine ID for every server(Windows, Linux). The license is available for one-time payment. In other words, once you purchase license from me, you can use our SDK permanently.

To request a license, please contact us:

Email: contact@kby-ai.com

1. Linux

  • CPU: 2 cores or more (Recommended: 2 cores)

  • RAM: 4 GB or more (Recommended: 8 GB)

  • HDD: 4 GB or more (Recommended: 8 GB)

  • OS: Windows 7 or later

  • Architecture: x64

2. Windows

  • CPU: 2 cores or more (Recommended: 2 cores)

  • RAM: 4 GB or more (Recommended: 8 GB)

  • HDD: 4 GB or more (Recommended: 8 GB)

  • OS: Ubuntu 20.04 or later

  • Architecture: x64

Import SDK

from alprsdk import initSDK, getLicensePlate, getMachineCode, freeLicenseResults, setActivation

Initializing SDK

  • Obtain the machine code to activate and request a license.

machineCode = getMachineCode()
print("\nmachineCode: ", machineCode.decode('utf-8')) 
  • Activate the SDK using the license key.

ret = setActivation(license.encode('utf-8'))
print("\nactivation: ", ret)
  • Initializing SDK

ret = initSDK()
  • Once ret value is zero, SDK can get work started.

APIs

1. Getting License Number & Coordinate

The SDK provides a single API for getting license plate number and its coordinate(x, y, width, height). The function can be used as follows:

recog_array = (c_int * 1024)()  # Assuming a maximum of 256 rectangles
license_plate_ptr = POINTER(c_char_p)()
cnt = getLicensePlate(img_byte, len(img_byte), byref(license_plate_ptr), recog_array)
  • recog_array: coordinate(x, y, width, height).

  • img_byte: image data in binary format.

  • license_plate_ptr: pointer to variable with license plate number.

2. Analyzing the result from SDK

Result values from SDK inference can be analyzed as follows.

license_plate = [license_plate_ptr[i].decode('utf-8') for i in range(cnt)]
rectangles = [
(recog_array[i * 4], recog_array[i * 4 + 1], recog_array[i * 4 + 2], recog_array[i * 4 + 3])
for i in range(cnt)]

freeLicenseResults(license_plate_ptr, cnt)

print("number: ", cnt, rectangles, license_plate)
  • cnt: the number of detected license plate.

  • rectangles: list of coordinate.

  • license plate: list of license number.

3. Free Memory

freeLicenseResults(license_plate_ptr, cnt)
Share on WhatsAppWhatsApp.com
Justin H.Telegram
Join the KBY-AI Discord Server!Discord
Logo
Join conversation on TeamsMicrosoft Teams
Logo
Logo
Logo