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?
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
add a comment |
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
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
add a comment |
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
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
ubuntu tesseract cpu-usage pytesseract
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
add a comment |
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
add a comment |
1 Answer
1
active
oldest
votes
Answer by myself.
I've removed leptonica-1.77.0 and compiled again, then the problem has been gone.
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Answer by myself.
I've removed leptonica-1.77.0 and compiled again, then the problem has been gone.
add a comment |
Answer by myself.
I've removed leptonica-1.77.0 and compiled again, then the problem has been gone.
add a comment |
Answer by myself.
I've removed leptonica-1.77.0 and compiled again, then the problem has been gone.
Answer by myself.
I've removed leptonica-1.77.0 and compiled again, then the problem has been gone.
answered Mar 9 at 9:26
Marcel KimMarcel Kim
1816
1816
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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