Tesseract-OCR training problems - c

I follow the steps in this tutorial http://code.google.com/p/tesseract-ocr/wiki/TrainingTesseract3 and gives me error on the part
mftraining-F-U font_properties unicharset nobatch.tr
The error I get is:
Failed to load font_properties
Reading nobatch.tr ...
nobatch has no defined properties.
!"Missing font_properties entry is a fatal error!":Error:Assert failed:in file mftraining.cpp, line 281
Segmentation fault
What you should do is to read superscripts and subscripts.
Any help or advice from any OCR to do this is appreciated.

Create file "font_properties"
With data:
font name 1 0 0 1 0
R.T.M again is there about font

when i followed that tutorial i had a same problem
'xxx.font_properties' change to 'font_properties' and problem fixed

Related

Could not open $readmem data file program mem.dat; please make sure the file is added to project and read permission, ignoring [MicroController:44]

enter image description hereWhen I execute a program that is of microcontroller then complier throws 3 errors:
[Synth 8-4445] could not open $readmem data file program mem.dat; please make sure the file is added to the project and has read permission, ignoring [MicroController:44]
Synth 8-439] module 'ALU' not found MicroController 47
failed synthesizing module 'MicroController MicroController v.21
3 Vivado Tel 4-5] Elaboration failed - please see the console for details Synthesis (3 errors, 1 critical warning

What does "make: *** [Makefile:58: install] Error 1" mean?

Does anyone know what this error mesage means? Everything worked perfectly just an hour ago but now I keep getting these error messages.
The '1' is the exit code from some command that you ran. make expects commands that succeed to return 0 and a non-zero value for failure. Take a look at the rest of the output to figure out exactly what failed

What does SDL_GetError say in the case of an error?

My main question: Please may you list a few examples of what SDL_GetError would print?
I want to use SDL_GetError to help me debug, however I don't know what to expect or how to create my own intentional errors.
The libsdl wiki says:
The message is only applicable when an SDL function has signaled an
error. You must check the return values of SDL function calls to determine
when to appropriately call SDL_GetError().
however http://sdl.beuc.net/sdl.wiki/SDL_GetError says:
Although this example uses SDL_Init, SDL_GetError provides an error
message for any failed SDL operation.
so which is it? Only some or all? None of the SDL wikis/documentations I have seen give a list of example error messages, so I don't know how to initiate an error, or what to expect in terms of content and format. Is
Error in `./foo': double free or corruption (top):
an SDL_GetError message or is that caused by something else?
The wiki entry for SDL_Error lists the error strings:
SDL_errorcode | The corresponding error string
SDL_ENOMEM | Out of memory
SDL_EFREAD | Error reading from datastream
SDL_EFWRITE | Error writing to datastream
SDL_EFSEEK | Error seeking in datastream
SDL_UNSUPPORTED | Unknown SDL error
SDL_LASTERROR | Unknown SDL error
any other value | Unknown SDL error
See also SDL_error.c. One of the wiki entries seems to be incorrect. The correct error code - error string pair would be:
SDL_UNSUPPORTED | That operation is not supported
You can set custom errors messages with SDL_SetError - see the .c above. Finally, "double free or corruption" is not an error caused by SDL, but most likely by a double free. I suggest gdb/valgrind to debug it.

Error uploading files CKAN

I am trying to upload data to CKAN, and I can do that for smaller files (I have uploaded 4 kB successfully), however for bigger files (with a file of 18 MB I already got this error), I get Error 500 An internal server error occurred.
In the command prompt where I am running CKAN I get
Error - <type 'exceptions.WindowsError'>: [Error 32] The file is already being used by another process: u'C:\\src\\ckan\\ckan\\resources\\a3d\\19a\\ba-7f3f-42fc-
a02e-09f50aae0924~'
URL: http://localhost:5000/dataset/new_resource/test1
I don't know what that file is, but I am pretty sure this error is the reason why I can't upload larger files, as it is the only error I get.
Important to say that I can successfully add resources from URL and from small files, but when trying with larger files, I get this error.
Does anyone have any idea on what could be wrong here?
Many thanks!
I can't explain that Windows-Error, but generally CKAN has an upload size limit of 10MB for resources by default. You can raise that in your ini with ckan.max_resource_size = XX, for example ckan.max_resource_size = 100 (which means = 100MB).

Erlang file:consult and system_limit error

I use file:consult function to read data from config file of my application. But some times i got error: {badmatch,{error,system_limit}} How can i avoid this?
I read about ERL_MAX_PORTS, but i haven't this variable:
echo $ERL_MAX_PORTS
i got empty string. How i can correctly set ERL_MAX_PORTS or can i find other methods to avoid this error?
Thank you

Resources