如何在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
最满意答案
你必须以这种方式编写代码。 这将为您的实体插入具有以下属性的新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 ...
-
xcode / ios:如何将映像保存到磁盘并在核心数据中存储名称(xcode/ios: How to save image to disk and store name in core data)[2021-07-28]
首先考虑添加一个子目录,而不是将文档目录与文件一起拥挤。 其次,在saveImage方法中添加Core Data持久性。 第三,在什么时间调用此保存方法取决于您的应用程序设置。 也许你有一个保存按钮或类似的东西。 如果您不知道如何实际保存到Core Data,那么您的问题超出了本论坛的范围。 然后你应该先做一个教程,比如这个 。 First consider adding a subdirectory rather than crowding your document directory with fil ... -
在iOS上的核心数据中存储复杂数据结构的最佳实践是什么?(What's the best practice to store complex data structure in core data on iOS?)[2022-12-08]
简短的回答,不,这不是最好的解决方案。 如果您不想使用您创建的数据模型存储对象,那么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 ...
-
在iOS中使用核心数据(Use of Core Data in iOS)[2023-07-11]
你可能想通过一些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 ...
-
ios / xcode:Core Data属性和方法的最佳位置(ios/xcode: Best place for Core Data properties and methods)[2024-02-24]
将逻辑放入Model类中,例如NSManagedObjectContext和NSPersistentStoreCcoordinator的方法。 该类可以继承自NSObject。 为NSManagedObjects创建(如果需要)类。 我的建议是在实体类之外保留尽可能多的逻辑。 将逻辑添加到实体类中以对属性值(或更改)作出反应是很诱人的。 但是在评估这种方法时,请考虑您的NSManagedObject相当短暂。 不要在你的应用程序中传递它。 NSManagedObject可能会变成故障,您的逻辑将无法再访问。 ...