> For the complete documentation index, see [llms.txt](https://docs.kby-ai.com/help/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.kby-ai.com/help/product/automatic-license-plate-number-recognition-sdk/license-plate-recognition-ios.md).

# License Plate Recognition-iOS

`KBY-AI`'s `LPR` iOS `SDK` utilized 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

* [x] Vehicle License Plate Reader
* [x] OCR Based License Number Parser
* [x] Vehicle Detection & Tracking
* [x] Export License Plate Coordinate
* [x] Support Car, Truck, Bus, etc
* [x] Support Various License Plates From 180+ Counrtries
* [x] On-Premise, Fully Offine Work

## License

We offer `lifetime license(perpetual license)` tied to each  `bundle ID` for `iOS` `SDK`s.&#x20;

The license is available with a `one-time payment`—meaning once you purchase it, you can use our `SDK` indefinitely without any recurring fees.

To request a license, please contact us:

> **Email:** <contact@kby-ai.com>&#x20;

{% embed url="<https://wa.me/+13348402323>" %}

{% embed url="<https://t.me/kbyaisupport>" %}

{% embed url="<https://discord.gg/6wm383re2s>" %}

{% embed url="<https://teams.live.com/l/invite/FAAYGB1-IlXkuQM3AQ>" %}

## Screenshots

<div><figure><img src="/files/XhtBzf4g46HtX1Do4hRt" alt="" width="212"><figcaption></figcaption></figure> <figure><img src="/files/Ljmz7NKt7SGAxJRmr9Qg" alt="" width="212"><figcaption></figcaption></figure> <figure><img src="/files/JMT4ISWrYWwx0YopjHoB" alt="" width="212"><figcaption></figcaption></figure></div>

## About SDK

#### 1. Set up

**1.1 Setting Up ALPR SDK**

> iOS

* Copy the `SDK` library (`alprsdk.framework` folder) and pre-built `onnxruntime` library (`onnxruntime.framework` folder) to the `root` folder in your project.
* Add `alprsdk.framework` and `onnxruntime.framework` to your project in `Xcode`.

> Project Navigator -> General -> Frameworks, Libraries, and Embedded Content

<figure><img src="/files/Wiyla1Pa8evPYOMbIzq1" alt=""><figcaption></figcaption></figure>

* Add the bridging header to your project settings

> Project Navigator -> Build Settings -> Swift Compiler - General

<figure><img src="/files/kKzV5oNMlphgVkSZZ19o" alt=""><figcaption></figcaption></figure>

#### 2 API Usages

* Activate the `SDK` by calling the `setActivation` method:

```swift
var ret = ALPRSDK.setActivation("xxx...")
```

* Get license plate number and its coordinates by calling the `processImage` method:

```swift
  let processImage = pickedImage.fixOrientation()
  let alprBoxes = ALPRSDK.processImage(processImage) as! [ALPRBox];
  let imageWithBoxes = drawALPRBoxes(on: processImage, boxes: alprBoxes)
```
