pytesseract eats CPU too high The Next CEO of Stack OverflowHow to get the CPU Usage in C#?MySQL high CPU usageMySQL Function eat too much CPUPreserving multiple space in pytesseract pythonGet orientation pytesseract Python3No module named pytesseractPyTesseract - recognize digits in simple imagepytesseract Failed loading language 'eng'Python pytesseract no such file or directoryWhat is the difference between Pytesseract and Tesserocr?

Complex fractions

How to make a variable always equal to the result of some calculations?

Return the Closest Prime Number

How do you know when two objects are so called entangled?

What was the first Unix version to run on a microcomputer?

A "random" question: usage of "random" as adjective in Spanish

Help understanding this unsettling image of Titan, Epimetheus, and Saturn's rings?

What happens if you roll doubles 3 times then land on "Go to jail?"

On model categories where every object is bifibrant

Are there any limitations on attacking while grappling?

Why did we only see the N-1 starfighters in one film?

How to prepend a string to only the lines of text which are numbers

Can we say or write : "No, it'sn't"?

Won the lottery - how do I keep the money?

Why does standard notation not preserve intervals (visually)

Is it ever safe to open a suspicious html file (e.g. email attachment)?

Can I equip Skullclamp on a creature I am sacrificing?

Why do remote companies require working in the US?

Beyond letters and diaries—exercises to explore characters' personalities and motivation

Why is there a PLL in CPU?

Opposite of a diet

What benefits would be gained by using human laborers instead of drones in deep sea mining?

Between two walls

Extending anchors in TikZ



pytesseract eats CPU too high



The Next CEO of Stack OverflowHow to get the CPU Usage in C#?MySQL high CPU usageMySQL Function eat too much CPUPreserving multiple space in pytesseract pythonGet orientation pytesseract Python3No module named pytesseractPyTesseract - recognize digits in simple imagepytesseract Failed loading language 'eng'Python pytesseract no such file or directoryWhat is the difference between Pytesseract and Tesserocr?










1















In Ubuntu 16.04 LTS, the pyteserract script eats too high, and it causes system reboot intermittenly.



The top command output is



 top - 21:23:31 up 27 min, 4 users, load average: 3.27, 1.86, 1.28
Tasks: 290 total, 2 running, 216 sleeping, 0 stopped, 0 zombie
%Cpu(s): 87.5 us, 0.7 sy, 0.0 ni, 11.7 id, 0.0 wa, 0.0 hi, 0.1 si, 0.0 st
KiB Mem : 16295836 total, 10387872 free, 2990788 used, 2917176 buff/cache
KiB Swap: 16645116 total, 16645116 free, 0 used. 12155216 avail Mem

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
5391 myid 20 0 1393532 141324 39308 R 667.8 0.9 2:30.57 python


the python script is



text_eng = pytesseract.image_to_string(Image.open(dst), lang='eng', config='--oem 1 --psm 1 -c preserve_interword_spaces=1')


My environment is



tesseract 4.1.0-rc1
leptonica-1.77.0
libjpeg 8d (libjpeg-turbo 1.4.2) : libpng 1.2.54 : libtiff 4.0.6 : zlib 1.2.8 : libopenjp2 2.1.2
Found AVX2
Found AVX
Found SSE


What I have done are
1) removed oem option
2) remove psm option
but no luck so far.



Any clue?










share|improve this question






















  • How do you get to 667.8% CPU usage? I assume that's a percentage of a single core. How many cores are you running? For example, if 32 cores, it's not CPU usage that's the problem, but, if less than 7 cores, problem.

    – Jim Fell
    Mar 8 at 15:58











  • @JimFell Thanks for your attention, cat /proc/cpuinfo | grep processor | wc -l returns 8 so that I think 8 cores! In irix mode, top says 99% of cpu usage. I think the problem comes from tesseract.

    – Marcel Kim
    Mar 8 at 16:39















1















In Ubuntu 16.04 LTS, the pyteserract script eats too high, and it causes system reboot intermittenly.



The top command output is



 top - 21:23:31 up 27 min, 4 users, load average: 3.27, 1.86, 1.28
Tasks: 290 total, 2 running, 216 sleeping, 0 stopped, 0 zombie
%Cpu(s): 87.5 us, 0.7 sy, 0.0 ni, 11.7 id, 0.0 wa, 0.0 hi, 0.1 si, 0.0 st
KiB Mem : 16295836 total, 10387872 free, 2990788 used, 2917176 buff/cache
KiB Swap: 16645116 total, 16645116 free, 0 used. 12155216 avail Mem

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
5391 myid 20 0 1393532 141324 39308 R 667.8 0.9 2:30.57 python


the python script is



text_eng = pytesseract.image_to_string(Image.open(dst), lang='eng', config='--oem 1 --psm 1 -c preserve_interword_spaces=1')


My environment is



tesseract 4.1.0-rc1
leptonica-1.77.0
libjpeg 8d (libjpeg-turbo 1.4.2) : libpng 1.2.54 : libtiff 4.0.6 : zlib 1.2.8 : libopenjp2 2.1.2
Found AVX2
Found AVX
Found SSE


What I have done are
1) removed oem option
2) remove psm option
but no luck so far.



Any clue?










share|improve this question






















  • How do you get to 667.8% CPU usage? I assume that's a percentage of a single core. How many cores are you running? For example, if 32 cores, it's not CPU usage that's the problem, but, if less than 7 cores, problem.

    – Jim Fell
    Mar 8 at 15:58











  • @JimFell Thanks for your attention, cat /proc/cpuinfo | grep processor | wc -l returns 8 so that I think 8 cores! In irix mode, top says 99% of cpu usage. I think the problem comes from tesseract.

    – Marcel Kim
    Mar 8 at 16:39













1












1








1








In Ubuntu 16.04 LTS, the pyteserract script eats too high, and it causes system reboot intermittenly.



The top command output is



 top - 21:23:31 up 27 min, 4 users, load average: 3.27, 1.86, 1.28
Tasks: 290 total, 2 running, 216 sleeping, 0 stopped, 0 zombie
%Cpu(s): 87.5 us, 0.7 sy, 0.0 ni, 11.7 id, 0.0 wa, 0.0 hi, 0.1 si, 0.0 st
KiB Mem : 16295836 total, 10387872 free, 2990788 used, 2917176 buff/cache
KiB Swap: 16645116 total, 16645116 free, 0 used. 12155216 avail Mem

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
5391 myid 20 0 1393532 141324 39308 R 667.8 0.9 2:30.57 python


the python script is



text_eng = pytesseract.image_to_string(Image.open(dst), lang='eng', config='--oem 1 --psm 1 -c preserve_interword_spaces=1')


My environment is



tesseract 4.1.0-rc1
leptonica-1.77.0
libjpeg 8d (libjpeg-turbo 1.4.2) : libpng 1.2.54 : libtiff 4.0.6 : zlib 1.2.8 : libopenjp2 2.1.2
Found AVX2
Found AVX
Found SSE


What I have done are
1) removed oem option
2) remove psm option
but no luck so far.



Any clue?










share|improve this question














In Ubuntu 16.04 LTS, the pyteserract script eats too high, and it causes system reboot intermittenly.



The top command output is



 top - 21:23:31 up 27 min, 4 users, load average: 3.27, 1.86, 1.28
Tasks: 290 total, 2 running, 216 sleeping, 0 stopped, 0 zombie
%Cpu(s): 87.5 us, 0.7 sy, 0.0 ni, 11.7 id, 0.0 wa, 0.0 hi, 0.1 si, 0.0 st
KiB Mem : 16295836 total, 10387872 free, 2990788 used, 2917176 buff/cache
KiB Swap: 16645116 total, 16645116 free, 0 used. 12155216 avail Mem

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
5391 myid 20 0 1393532 141324 39308 R 667.8 0.9 2:30.57 python


the python script is



text_eng = pytesseract.image_to_string(Image.open(dst), lang='eng', config='--oem 1 --psm 1 -c preserve_interword_spaces=1')


My environment is



tesseract 4.1.0-rc1
leptonica-1.77.0
libjpeg 8d (libjpeg-turbo 1.4.2) : libpng 1.2.54 : libtiff 4.0.6 : zlib 1.2.8 : libopenjp2 2.1.2
Found AVX2
Found AVX
Found SSE


What I have done are
1) removed oem option
2) remove psm option
but no luck so far.



Any clue?







ubuntu tesseract cpu-usage pytesseract






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 8 at 13:27









Marcel KimMarcel Kim

1816




1816












  • How do you get to 667.8% CPU usage? I assume that's a percentage of a single core. How many cores are you running? For example, if 32 cores, it's not CPU usage that's the problem, but, if less than 7 cores, problem.

    – Jim Fell
    Mar 8 at 15:58











  • @JimFell Thanks for your attention, cat /proc/cpuinfo | grep processor | wc -l returns 8 so that I think 8 cores! In irix mode, top says 99% of cpu usage. I think the problem comes from tesseract.

    – Marcel Kim
    Mar 8 at 16:39

















  • How do you get to 667.8% CPU usage? I assume that's a percentage of a single core. How many cores are you running? For example, if 32 cores, it's not CPU usage that's the problem, but, if less than 7 cores, problem.

    – Jim Fell
    Mar 8 at 15:58











  • @JimFell Thanks for your attention, cat /proc/cpuinfo | grep processor | wc -l returns 8 so that I think 8 cores! In irix mode, top says 99% of cpu usage. I think the problem comes from tesseract.

    – Marcel Kim
    Mar 8 at 16:39
















How do you get to 667.8% CPU usage? I assume that's a percentage of a single core. How many cores are you running? For example, if 32 cores, it's not CPU usage that's the problem, but, if less than 7 cores, problem.

– Jim Fell
Mar 8 at 15:58





How do you get to 667.8% CPU usage? I assume that's a percentage of a single core. How many cores are you running? For example, if 32 cores, it's not CPU usage that's the problem, but, if less than 7 cores, problem.

– Jim Fell
Mar 8 at 15:58













@JimFell Thanks for your attention, cat /proc/cpuinfo | grep processor | wc -l returns 8 so that I think 8 cores! In irix mode, top says 99% of cpu usage. I think the problem comes from tesseract.

– Marcel Kim
Mar 8 at 16:39





@JimFell Thanks for your attention, cat /proc/cpuinfo | grep processor | wc -l returns 8 so that I think 8 cores! In irix mode, top says 99% of cpu usage. I think the problem comes from tesseract.

– Marcel Kim
Mar 8 at 16:39












1 Answer
1






active

oldest

votes


















0














Answer by myself.



I've removed leptonica-1.77.0 and compiled again, then the problem has been gone.






share|improve this answer























    Your Answer






    StackExchange.ifUsing("editor", function ()
    StackExchange.using("externalEditor", function ()
    StackExchange.using("snippets", function ()
    StackExchange.snippets.init();
    );
    );
    , "code-snippets");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "1"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55064210%2fpytesseract-eats-cpu-too-high%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    Answer by myself.



    I've removed leptonica-1.77.0 and compiled again, then the problem has been gone.






    share|improve this answer



























      0














      Answer by myself.



      I've removed leptonica-1.77.0 and compiled again, then the problem has been gone.






      share|improve this answer

























        0












        0








        0







        Answer by myself.



        I've removed leptonica-1.77.0 and compiled again, then the problem has been gone.






        share|improve this answer













        Answer by myself.



        I've removed leptonica-1.77.0 and compiled again, then the problem has been gone.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Mar 9 at 9:26









        Marcel KimMarcel Kim

        1816




        1816





























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55064210%2fpytesseract-eats-cpu-too-high%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Identity Server 4 is not redirecting to Angular app after login2019 Community Moderator ElectionIdentity Server 4 and dockerIdentityserver implicit flow unauthorized_clientIdentityServer Hybrid Flow - Access Token is null after user successful loginIdentity Server to MVC client : Page Redirect After loginLogin with Steam OpenId(oidc-client-js)Identity Server 4+.NET Core 2.0 + IdentityIdentityServer4 post-login redirect not working in Edge browserCall to IdentityServer4 generates System.NullReferenceException: Object reference not set to an instance of an objectIdentityServer4 without HTTPS not workingHow to get Authorization code from identity server without login form

            How to get text form Clipboard with JavaScript in Firefox 56?How to validate an email address in JavaScript?How do JavaScript closures work?How do I remove a property from a JavaScript object?How do you get a timestamp in JavaScript?How do I copy to the clipboard in JavaScript?How do I include a JavaScript file in another JavaScript file?Get the current URL with JavaScript?How to replace all occurrences of a string in JavaScriptHow to check whether a string contains a substring in JavaScript?How do I remove a particular element from an array in JavaScript?

            Can't initialize raids on a new ASUS Prime B360M-A motherboard2019 Community Moderator ElectionSimilar to RAID config yet more like mirroring solution?Can't get motherboard serial numberWhy does the BIOS entry point start with a WBINVD instruction?UEFI performance Asus Maximus V Extreme