Small adjustments for recognizing plate numbers

This commit is contained in:
Selim Mustafaev 2020-10-11 22:06:33 +03:00
parent e8916bc7d7
commit e7e6838b30
3 changed files with 4 additions and 2 deletions

View File

@ -168,6 +168,7 @@ class RecordsController: UIViewController, UITableViewDelegate {
.uppercased()
.replacingOccurrences(of: "Ф", with: "В")
.replacingOccurrences(of: "НОЛЬ", with: "0")
.replacingOccurrences(of: "Э", with: "")
var result = ""
if let range = trimmed.range(of: #"\S\d\d\d\S\S\d\d\d?"#, options: .regularExpression) {

View File

@ -3,9 +3,9 @@ import Foundation
enum Constants {
static var baseUrl: String {
#if DEBUG
return "http://127.0.0.1:3000/"
//return "http://127.0.0.1:3000/"
//return "http://192.168.1.67:3000/"
//return "https://vps.aliencat.pro:8443/"
return "https://vps.aliencat.pro:8443/"
#else
return "https://vps.aliencat.pro:8443/"
#endif

View File

@ -26,6 +26,7 @@ class Recorder {
]
init() {
self.request.contextualStrings = ["61", "161", "761", "123", "750", "777", "799"]
}
func microphoneAvailable() -> Bool {