首页 \ 问答 \ 如何在Windows 10上使用Visual Studio 2015 x64配置和构建Tesseract OCR C ++(How to configure and build Tesseract OCR C++ using Visual Studio 2015 x64 on Windows 10)

如何在Windows 10上使用Visual Studio 2015 x64配置和构建Tesseract OCR C ++(How to configure and build Tesseract OCR C++ using Visual Studio 2015 x64 on Windows 10)

我试图在Tesseract OCR Library中运行VS2015_Tesseract示例。

我尝试打开文件时总是收到以下错误:

找不到路径的一部分

目前我在Windows 10(64位)上使用Visual Studio 2015。

请提供有关如何在Visual Studio 2015 Windows 10(64位)上配置Tesseract OCR C ++库的完整信息。

您还可以提供任何参考教程链接。


I am trying to run the VS2015_Tesseract example in Tesseract OCR Library.

I always get the following error when I try to open the file:

Could not find a part of the path

Currently I am working with Visual Studio 2015 on Windows 10 (64 bit).

Please provide the full information on how I can configure the Tesseract OCR C++ library on Visual Studio 2015 Windows 10 (64 bit).

You also can provide any reference tutorial links.


原文:https://stackoverflow.com/questions/39333187
更新时间:2021-12-13 06:12

最满意答案

你必须以这种方式编写代码。 这将为您的实体插入具有以下属性的新Object。 您可以根据自己的要求进行编辑。

NSManagedObjectContext *context = [self managedObjectContext];
NSManagedObject *powerDesc = [NSEntityDescription insertNewObjectForEntityForName:@"EY_Appliance" inManagedObjectContext:context];


[powerDesc setValue:self.applianceId.text forKey:@"applianceId"];
[powerDesc setValue:self.applianceName.text forKey:@"applianceName"];
[powerDesc setValue:self.watts.text forKey:@"watts"];
[powerDesc setValue:self.amountPerWatts.text forKey:@"amountPerWatts"];

// Save the context
NSError *error = nil;
if (![context save:&error]) {
    NSLog(@"Saving Failed!, Error and its Desc %@ %@", error, [error localizedDescription]);
}

You have to write code in this way. This will insert new Object for your entity with following attributes. You can edit it as per your requirement.

NSManagedObjectContext *context = [self managedObjectContext];
NSManagedObject *powerDesc = [NSEntityDescription insertNewObjectForEntityForName:@"EY_Appliance" inManagedObjectContext:context];


[powerDesc setValue:self.applianceId.text forKey:@"applianceId"];
[powerDesc setValue:self.applianceName.text forKey:@"applianceName"];
[powerDesc setValue:self.watts.text forKey:@"watts"];
[powerDesc setValue:self.amountPerWatts.text forKey:@"amountPerWatts"];

// Save the context
NSError *error = nil;
if (![context save:&error]) {
    NSLog(@"Saving Failed!, Error and its Desc %@ %@", error, [error localizedDescription]);
}

相关问答

更多
  • 您需要创建NSManagedObject的子类并定义所有需要的字段 @interface AlbumInfo : NSManagedObject @property (nonatomic, retain) NSNumber * albumId; @property (nonatomic, retain) NSString * albumName; @property (nonatomic, retain) NSString * coverPhotoURL; @property (nonatomic, re ...
  • 我会选择你的第一个选择。 关于必须删除的图像:ASIHTTPRequest的缓存一旦过期,是不是会自动处理? 至少那是我对缓存的期望...... I'd take your first option. Regarding the images that would have to be deleted: isn't that taken care of automatically by ASIHTTPRequest's cache, once they expire? At least that's wha ...
  • 首先考虑添加一个子目录,而不是将文档目录与文件一起拥挤。 其次,在saveImage方法中添加Core Data持久性。 第三,在什么时间调用此保存方法取决于您的应用程序设置。 也许你有一个保存按钮或类似的东西。 如果您不知道如何实际保存到Core Data,那么您的问题超出了本论坛的范围。 然后你应该先做一个教程,比如这个 。 First consider adding a subdirectory rather than crowding your document directory with fil ...
  • 简短的回答,不,这不是最好的解决方案。 如果您不想使用您创建的数据模型存储对象,那么Core Data将为您带来很少的好处。 你基本上会有一堆不透明的对象,除非你反序列化它的json字符串,否则你将无法区分它们。 如果这足以满足您的需求,那么我建议您只将对象存档到磁盘并跳过Core Data的开销。 Short answer, no, that would not be the best solution. If you don't want to store the object with a data ...
  • 如果您在iOS 7中测试它,那么问题在于在sqlite文件上进行日志记录。 SQLite写入在iOS 7中更改为日志模式,因此写入首先添加到辅助文件,然后再卷起。 如果在后续启动时,您在UI中看到了数据,则无需更改任何内容。 If you are testing this in iOS 7 then the issue is with journalling on the sqlite file. SQLite writes were changed in iOS 7 to journal mode so ...
  • 你可能想通过一些SO链接: 这里 。 此外,我曾经记得通过本指南将Core Data添加到我的项目中。 它可能会帮助您通过此链接直接将JSON保存到Core Data。 我在这里推荐了这个链接几次。 相信我,当你看到开始工作的时候,你正在忍受设置核心数据的所有这些痛苦是值得的! You might wanna go through some SO links: here. Also, I once remember going through this guide for adding Core Data ...
  • 在我看来,这里的2行: // Point to DashboardEntity from my database let entity = NSEntityDescription.entityForName("DashboardEntity", inManagedObjectContext:managedContext) // Here I create an object of type VisitEntity, that takes an extra parameter that converts ...
  • 创建实体时,应使用Expense或Income作为实体名称,例如: [NSEntityDescription insertNewObjectForEntityForName:@"Expense" inManagedObjectContext:context]; 然后,当您使用实体名称“Money”获取时,它将按照您的预期拉出子实体。 When you create your entities you should use Expense or Income as the entity name, e.g. ...
  • 你必须以这种方式编写代码。 这将为您的实体插入具有以下属性的新Object。 您可以根据自己的要求进行编辑。 NSManagedObjectContext *context = [self managedObjectContext]; NSManagedObject *powerDesc = [NSEntityDescription insertNewObjectForEntityForName:@"EY_Appliance" inManagedObjectContext:context]; [powe ...
  • 将逻辑放入Model类中,例如NSManagedObjectContext和NSPersistentStoreCcoordinator的方法。 该类可以继承自NSObject。 为NSManagedObjects创建(如果需要)类。 我的建议是在实体类之外保留尽可能多的逻辑。 将逻辑添加到实体类中以对属性值(或更改)作出反应是很诱人的。 但是在评估这种方法时,请考虑您的NSManagedObject相当短暂。 不要在你的应用程序中传递它。 NSManagedObject可能会变成故障,您的逻辑将无法再访问。 ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)