登陆界面和车牌检测

This commit is contained in:
w-mj committed 2017-12-24 15:45:45 +08:00
1 parent 77f1186af8
commit 9ec3bb2b4b
11 files changed
+332 -17

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
#include "utils.h"
bool checkPlate(QString plate)
{
QString province = "京津冀晋蒙辽吉黑沪苏浙皖闽赣鲁豫鄂湘粤桂琼川贵云渝藏陕甘青宁新港澳台";
if (!province.contains(plate.at(0)))
return false;
if (plate.size() != 6)
return false;
for (auto c = plate.begin() + 1; c != plate.end(); c++)
if (!c->isLetterOrNumber())
return false;
return true;
}