Posts by Alan Maxwell • 99 points
5 posts
-
0
votes1
answer327
viewsQ: Nameerror: name 'pytesseract' is not defined
I am using the Pytesseract and Opencv libraries to print a text from an image, but when trying to run the script it gives the following error: img_text = pytesseract.image_to_string(img)…
-
0
votes2
answers444
viewsQ: while true x loop
Developing some scripts in Ruby I come across the following situation: There are indeed several Repetition Structures, but 2 in particular caught my attention. while true and loop do. Both generate…
-
4
votes3
answers982
viewsQ: Concatenation in Ruby and . object_id
Hello, my friends! I was studying Ruby and reading the concatenation methods I noticed a slight difference. When I tested the first method using "+", I noticed that when using the .object_id it…
-
3
votes3
answers243
viewsQ: Use of functions in Python
I know that it is possible to create functions in the Python to perform certain tasks that normally need to be performed several times within an application. Ex: Paint shop program that calculates…
-
2
votes1
answer1934
viewsQ: Pygame does not run a.mp3 file and returns pygame-error
I was touching the Pygame and when performing a program that plays music: from pygame import mixer mixer.init() mixer.music.load('ex021.mp3') # Dark Souls III Soundtrack OST - Main Theme.mp3…