Skip to main content

Scanning a vehicle identification number from an image

Provided a still image, the vehicle identification number scanner can perform detection on the image and return the result. The recognize(on:) method of SBSDKVehicleIdentificationNumberScanner takes an input of a still image, and returns the result.

Example for detecting vehicle identification number on the Image

import Foundation
import ScanbotSDK

func detectVinOnImage() {

// Image containing Vehicle identification number.
guard let image = UIImage(named: "vinImage") else { return }

// Creates an instance of `SBSDKVehicleIdentificationNumberScanner` using the default configuration.
let scanner = SBSDKVehicleIdentificationNumberScanner(configuration: .defaultConfiguration)

// Returns the result after running detector on the image.
let result = scanner.recognize(on: image)

Want to scan longer than one minute?

Generate your free "no-strings-attached" Trial License and properly test the Scanbot SDK.

Get your free Trial License

What do you think of this documentation?