Small adjustments for recognizing plate numbers
This commit is contained in:
parent
e8916bc7d7
commit
e7e6838b30
@ -168,6 +168,7 @@ class RecordsController: UIViewController, UITableViewDelegate {
|
|||||||
.uppercased()
|
.uppercased()
|
||||||
.replacingOccurrences(of: "Ф", with: "В")
|
.replacingOccurrences(of: "Ф", with: "В")
|
||||||
.replacingOccurrences(of: "НОЛЬ", with: "0")
|
.replacingOccurrences(of: "НОЛЬ", with: "0")
|
||||||
|
.replacingOccurrences(of: "Э", with: "")
|
||||||
|
|
||||||
var result = ""
|
var result = ""
|
||||||
if let range = trimmed.range(of: #"\S\d\d\d\S\S\d\d\d?"#, options: .regularExpression) {
|
if let range = trimmed.range(of: #"\S\d\d\d\S\S\d\d\d?"#, options: .regularExpression) {
|
||||||
|
|||||||
@ -3,9 +3,9 @@ import Foundation
|
|||||||
enum Constants {
|
enum Constants {
|
||||||
static var baseUrl: String {
|
static var baseUrl: String {
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
return "http://127.0.0.1:3000/"
|
//return "http://127.0.0.1:3000/"
|
||||||
//return "http://192.168.1.67:3000/"
|
//return "http://192.168.1.67:3000/"
|
||||||
//return "https://vps.aliencat.pro:8443/"
|
return "https://vps.aliencat.pro:8443/"
|
||||||
#else
|
#else
|
||||||
return "https://vps.aliencat.pro:8443/"
|
return "https://vps.aliencat.pro:8443/"
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@ -26,6 +26,7 @@ class Recorder {
|
|||||||
]
|
]
|
||||||
|
|
||||||
init() {
|
init() {
|
||||||
|
self.request.contextualStrings = ["61", "161", "761", "123", "750", "777", "799"]
|
||||||
}
|
}
|
||||||
|
|
||||||
func microphoneAvailable() -> Bool {
|
func microphoneAvailable() -> Bool {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user