没有找到合适的产品?
联系客服协助选型:023-68661681
提供3000多款全球软件/控件产品
针对软件研发的各个阶段提供专业培训与技术咨询
根据客户需求提供定制化的软件开发服务
全球知名设计软件,显著提升设计质量
打造以经营为中心,实现生产过程透明化管理
帮助企业合理产能分配,提高资源利用率
快速打造数字化生产线,实现全流程追溯
生产过程精准追溯,满足企业合规要求
以六西格玛为理论基础,实现产品质量全数字化管理
通过大屏电子看板,实现车间透明化管理
对设备进行全生命周期管理,提高设备综合利用率
实现设备数据的实时采集与监控
利用数字化技术提升油气勘探的效率和成功率
钻井计划优化、实时监控和风险评估
提供业务洞察与决策支持实现数据驱动决策
原创|行业资讯|编辑:郝浩|2013-10-24 09:27:53.000|阅读 1079 次
概述:移动图像开发包LEADTOOLS iOS and OS X imaging SDK提供了创建跨平台移动图像应用的所有功能,如查看器、注释、标记、OCR、条形码、PDF、图像格式、压缩和图像处理等。 本文主要展示如何利用LEADTOOLS iOS库的OCR功能识别文本并从图像中读取条码。
# 界面/图表报表/文档/IDE等千款热门软控件火热销售中 >>
移动图像开发包LEADTOOLS iOS and OS X imaging SDK提供了创建跨平台移动图像应用的所有功能,如查看器、注释、标记、OCR、条形码、PDF、图像格式、压缩和图像处理等。 本文主要展示如何利用LEADTOOLS iOS库的OCR功能识别文本并从图像中读取条码。
获得LEADTOOLS图像
LEADTOOLS iOS库通过 LTRasterImage对象显示和处理图像。幸运的是,LEADTOOLS只需要几行代码便可轻松地实现与iOS的互操作。
// Obtain the image from bundle, photo library or live capture UIImage* uiImage = ... // Convert UIImage to LTRasterImage using default options LTRasterImage* rasterImage = [LTRasterImageConverter convertFromImage:uiImage options:LTConvertFromImageOptions_None error:nil];
获取图像后,接下使用LEADTOOLS 所提供的先进的OCR和Barcode成像技术。
OCR示例
首先,创建一个LEADTOOLS OCR引擎实例。
// Create an instance of LEADTOOLS OCR engine LTOcrEngine* ocrEngine = [LTOcrEngineManager createEngine:LTOcrEngineType_Advantage]; // Start up the engine with default parameters... // We already added the OCR engine required language data files to the main bundle NSString* bundlePath = [[NSBundle mainBundle] bundlePath]; [ocrEngine startup:nil workDirectory:nil startupParameters:bundlePath]; // Optionally, modify the settings for the OCR engine // here (through ocrEngine.settingsManager)
接下来,我们创建一个新的OCR文档并添加图像:
// First create a document LTOcrDocument* ocrDocument = [ocrEngine.documentManager createDocument]; // Add the image as a page into the document pages collection LTOcrPage* ocrPage = [ocrDocument.pages addPageWithImage:rasterImage target:nil selector:nil error:nil]; // You can add manual zones (text or graphics area) // to the page at this point through the ocrPage.zones collection. // In this example we will let the engine auto-zone the page for us.
最后,识别页面获取文本。
// Recognize it and print the results to the console NSString* result = [ocrPage recognizeText:nil selector:nil error:nil]; printf("%s\n", result.UTF8String);
Barcode示例
首先,创建一个LEADTOOLS Barcode引擎实例。
// Create an instance of LEADTOOLS barcode engine LTBarcodeEngine* barcodeEngine = [LTBarcodeEngine new]; // Get the barcode reader object LTBarcodeReader* barcodeReader = barcodeEngine.reader; // At this point, you can modify the barcode reading // options (such as search direction, error checking, etc.) // through the barcodeReader members. In this example we // will leave everything as default.
接下来,我们将设置一些搜索选项,然后从图像中读取条形码。
// Read the barcode in the image, first lets setup the options: // The search location and size in the image, all of it LeadRect searchBounds = LeadRect_Empty(); // Symbologies (barcode types such as UPC-A, UPC-E, // QR, etc.) we are interested in, all of them LTBarcodeSymbology* symbologies = nil; // Call readBarcode LTBarcodeData* barcodeData = [barcodeReader readBarcode:rasterImage searchBounds:searchBounds symbologies:symbologies symbologiesCount:0 error:nil];
LTBarcodeData对象包含条码信息,如类型,价值和位置等。有了这些信息,你可以实现在线搜索价格或者访问条码中所嵌入的Web页面。
if (barcodeData != nil) { // We have a barcode // Get the name of the symbology (type) such as UPC-A, // UPC-E, QR, EAN, etc. NSString* symbology = [LTBarcodeEngine getSymbologyFriendlyName:barcodeData.symbology]; // Get the location in the image LeadRect bounds = barcodeData.bounds; // Get a text representation of the data NSString* value = barcodeData.value; // Print the result to the console NSString* result = [NSString stringWithFormat: @"Found %@ barcode at %d,%d,%d,%d\nData: %@", symbology, bounds.x, bounds.y, bounds.x + bounds.width, bounds.y + bounds.height, value]; printf("%s\n", result.UTF8String); } else { printf("No barcode found\n"); }
本站文章除注明转载外,均为本站原创或翻译。欢迎任何形式的转载,但请务必注明出处、不得修改原文相关链接,如果存在内容上的异议请邮件反馈至chenjj@evget.com
文章转载自:慧都控件网跨团队协作中,测试信息的孤岛化与不同角色间的“理解鸿沟”严重阻碍协作效率。开发、测试与非技术成员常因信息分散或表述晦涩而难以高效协同。TestComplete自动化测试方案通过丰富的多格式报告、直观的可视化证据以及与现有工具链的无缝集成,打破信息壁垒,确保所有相关方都能便捷、清晰地获取和理解关键测试结果。
需求管理一直是软件开发与系统设计过程的关键环节,但也常常面临诸多痛点:需求描述模糊、变更频繁导致信息混乱,各环节追溯困难,以及团队成员与利益相关者之间协作效率低下。针对这些挑战,企业级建模平台Sparx EA通过强大的需求建模功能与可视化工具提供了高效解决方案。它支持需求的精细化属性管理、全流程追溯关联,以及多样化的图表展示,帮助团队清晰定义需求、实时跟踪状态,并确保信息透明共享。
HOOPS Web Platform不仅帮助RIB成功完成了iTWO从桌面到云端的跨越,更为建筑行业的数字化转型提供了强大的可视化引擎。未来,它将继续推动建筑管理走向更加智能与高效的新时代。
在大型技术项目中,工具链割裂、协作低效、安全失控是架构师与开发团队的共性痛点。Sparx Systems的Enterprise Architect(Sparx EA)终极版以四大核心技术能力直击这些挑战,成为企业级建模与系统工程的战略级解决方案。本文将深度解析其技术竞争力内核。
50万用户首选的跨平台、跨浏览器的JavaScript/HTML图表解决方案
AnyChart灵活的高度可定制的跨浏览器、跨平台JavaScript (HTML5) 图表控件。
Javascript Stock Chart可将任意给予日期和时间数据可视化的Javascript金融图表工具
JavaScript Charts拥有良好兼容性的JavaScript、HTML5图表开发工具
TeeChart for JavaScript/HTML5基于HTML5画布的跨浏览器JavaScript图表库
服务电话
重庆/ 023-68661681
华东/ 13452821722
华南/ 18100878085
华北/ 17347785263
客户支持
技术支持咨询服务
服务热线:400-700-1020
邮箱:sales@evget.com
关注我们
地址 : 重庆市九龙坡区火炬大道69号6幢
慧都科技 版权所有 Copyright 2003-
2025 渝ICP备12000582号-13 渝公网安备
50010702500608号