Thanks Tom!  I knew there had to be an easier way of just setting some 
flags or something like that rather than trying to modify the source.  I'll 
try these out and let you know of the results.

On Friday, June 26, 2015 at 2:18:31 PM UTC-7, Tom Morris wrote:
>
> On Thursday, June 25, 2015 at 4:23:32 PM UTC-4, [email protected] wrote:
>>
>> I've been playing around with the OpenCL option for Tesseract.  It 
>> appears on very first runs, it profiles the system and tries to determine 
>> which is the fastest compute device and uses that device for future runs.  
>> Is there a way to manually select the device for tesseract to run on?  Eg.  
>> what if I want to run it using the regular cpu and not the gpu which 
>> tesseract automatically chooses? 
>>
>
> I've never played with OpenCL, but from glancing at the source code there 
> appear to be two environment variables which can be used to control 
> behavior:
>
> TESSERACT_OPENCL_DEVICE - the number of the device which will be used to 
> override any automatic selection
> SC_OPENCLCPU - if defined causes the CPU to be used in preference to the 
> GPU 
>
> Tom
>

-- 
You received this message because you are subscribed to the Google Groups 
"tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/afe77e1c-b6e1-4616-9386-c673b53b9866%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to