Python Ocr车牌识别(Python Ocr Licence Plate Recognition)
我尝试将图像转换为具有自适应阈值和Thesh_Binary_Inv的灰色
gray = cv2.cvtColor(img1,cv2.COLOR_BGR2GRAY) adapt1 = cv2.adaptiveThreshold(gray,130,cv2.ADAPTIVE_THRESH_GAUSSIAN_C,cv2.THRESH_BINARY_INV,153,40)
并尝试使用pytesser获取牌照,但得到一些随机值作为输出
任何人都可以帮助我从图像中提取文本,以及在哪里找到如何使用kmeans或任何其他算法训练的教程
I tried converting the image into gray with adaptive threshold and Thesh_Binary_Inv
gray = cv2.cvtColor(img1,cv2.COLOR_BGR2GRAY) adapt1 = cv2.adaptiveThreshold(gray,130,cv2.ADAPTIVE_THRESH_GAUSSIAN_C,cv2.THRESH_BINARY_INV,153,40)
and trying to get the license plate using pytesser but got some random values as output
can anyone help me out with extracting text from images and where to find tutorial on how to train using kmeans or any other algorithm
原文:https://stackoverflow.com/questions/42472877
最满意答案
它与桌面相同 - Ajax在移动设备上没有什么不同。 只需将其视为较小屏幕上的浏览器:-)
你需要$ _POST,$ _REQUEST或file_get_contents(“php:// input”);
Its the same as a desktop - Ajax is no different on a mobile device. Just think of it as a browser on a smaller screen :-)
You'll want $_POST, $_REQUEST or file_get_contents("php://input");
相关问答
更多-
应用程序保持崩溃 - JSON(App keeps Crashing - JSON)[2023-12-30]
这是因为您的JSON正在解码为NSDictionary而不是NSArray。 如果我正确地看到yahoo响应,你可能想要获取objectForKey:@"results"然后objectForKey:@"quote" : NSDictionary *resultQuery = [json objectForKey:@"query"]; NSDictionary *results = [resultQuery objectForKey:@"results"]; NSDictionary *quote = [r ... -
将Cloudant数据源置于以下格式: *****************-bluemix.cloudant.com/dbname/ 没有_all_docs 。 从URL中删除_all_docs后,我就可以连接到我的数据源了。 例如,这是我连接到我称为products的数据库的配置。 Put your Cloudant data source in this format: *****************-bluemix.cloudant.com/dbname/ without the _all_doc ...
-
如果您使用Yii2尝试使用yii \ rest \ ActiveController用于API控制器,请不要忘记启用json输入。 更多信息在yii2 docs - yii2休息快速入门 ps,你也可以在动作中使用“file_get_contents('php:// input')”,但我认为它不是yii-way。 If you use Yii2 try to use yii\rest\ActiveController for API controllers and don't forget enable ...
-
对fetch响应调用res.json()将返回一个承诺,该承诺以JSON格式解析为请求的主体。 你应该做的是用来自请求的数据设置一些状态。 你可以这样做: export default class SearchBooks extends Component { state = { query: '', books: [] } updateQuery = (query) => { this.setState(() => ({ ...
-
您可以使用HTTPS来传输数据。但是您需要一个SSL证书。 You can use HTTPS to transmit data.But you will need an SSL cerificate for this.
-
您是否有使用JSON尝试执行此操作的具体原因? 您不能只将二进制数据填充到JSON字符串中。 如果您可以避免使用JSON,那么只需使用multipart / form-data请求通过HTTP发送二进制数据即可。 如果出于某种原因,您坚持使用JSON,则可以使用base64编码来实现此目的。 在你的Android应用程序中,你需要base64对二进制数据进行编码。 这将产生一个字符串。 然后,您可以将JSON中的此字符串发送到服务器。 在服务器端,您将需要从JSON,base64解码中获取base64编码的 ...
-
在您的AJAX调用中,您可以设置success回调函数,您可以在其中将服务器响应附加到DOM: $.ajax({ url : "http://localhost:3000/lists", dataType : "json", type : "GET", processData : false, contentType : "application/json", success : function (serverRe ...
-
从移动应用程序接收json(receiving json from mobile app)[2023-07-01]
它与桌面相同 - Ajax在移动设备上没有什么不同。 只需将其视为较小屏幕上的浏览器:-) 你需要$ _POST,$ _REQUEST或file_get_contents(“php:// input”); Its the same as a desktop - Ajax is no different on a mobile device. Just think of it as a browser on a smaller screen :-) You'll want $_POST, $_REQUEST ... -
在Apple Watch上运行应用程序时找不到JSON文件(Cannot find JSON file while running an app on the Apple Watch)[2023-05-10]
我不知道为什么,但我认识到文件的结尾始于大写J.所以名字是MotorController.Json而不是MotorController.json。 似乎模拟器没有问题,但Apple Watch确实如此。 我希望没有人在解决这个问题上付出太多努力。 I don't know why, but I recognised that the file ending started with a capital J. So the name was MotorController.Json not MotorCont ... -
您应该在
- 元素而不是父
- 上使用ng-repeat:
- {{item.username}} You should use ng-repeat on the
- element instead of the parent
- :
- {{item.username}}
- 元素而不是父