Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: PolicyError: not authorized `JRF-DEO.pdf' @ error/constitute.c/ReadImage/412
Post: RE: PolicyError: not authorized `JRF-DEO.pdf' @ er...

updated image magic policy for pdf to read|write and restarted the system
bvdinesh General Coding Help 1 3,342 Jan-07-2019, 03:39 AM
    Thread: PolicyError: not authorized `JRF-DEO.pdf' @ error/constitute.c/ReadImage/412
Post: PolicyError: not authorized `JRF-DEO.pdf' @ error/...

Hi, I am getting above error fro below code. This is I am running in Ubuntu and connected through SSH and Jupyter from wand.image import Image as Img with Img(filename="JRF-DEO.pdf", resolution=300...
bvdinesh General Coding Help 1 3,342 Jan-06-2019, 05:34 AM
    Thread: Error when executing pytesseract to get the text from image
Post: RE: Error when executing pytesseract to get the te...

addedpytesseract.pytesseract.tesseract_cmd = r"C:\Program Files (x86)\Tesseract-OCR\tesseract.exe" in the script
bvdinesh General Coding Help 3 17,931 Jan-06-2019, 05:28 AM
    Thread: Syntax Error with if
Post: RE: Syntax Error with if

Here is the full working code import random z = int(random.randint(0,100)) att = int(0) # att will be used to count the attemps inside my loop solve = False ...
bvdinesh General Coding Help 8 4,118 Jan-04-2019, 10:10 PM
    Thread: How to remove whitespace from a string when .replace and .strip do not work
Post: RE: How to remove whitespace from a string when .r...

try this Remove ALL spaces in a string, even between words: import re sentence = re.sub(r"\s+", "", sentence, flags=re.UNICODE) Remove spaces in the BEGINNING of a string: import re sentence = re.s...
bvdinesh General Coding Help 7 4,473 Jan-04-2019, 10:05 PM
    Thread: Error when executing pytesseract to get the text from image
Post: Error when executing pytesseract to get the text f...

Hi Iam having issue geeting text from scanned image using pytesseract. Please help me Here is the code from wand.image import Image as Img from PIL import Image import pytesseract import cv2 with I...
bvdinesh General Coding Help 3 17,931 Jan-04-2019, 09:58 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020