Questions tagged as 'python'

0
answers

Error when extracting text from a tesseract image django

I have tried different solutions to extract the text of an image, the code I use is the following: import pytesseract from PIL import Image, ImageEnhance, ImageFilter from pytesseract import image_to_string #url imagen path...
asked by 05.06.2018 / 22:38
0
answers

save data from a file in another Python file

I'm in doubt about how to save a sum that contains numbers in one file and pass it to another file (data.txt) I leave the example if I want to add it is line2, the problem is that I do not create the second file. #Primero creo el fichero def c...
asked by 05.06.2018 / 10:01
1
answer

How to extract text from a SCANNED PDF in Python

I have the following code that extracts or separates the pdf in images, the idea is to extract a specific page and from that image obtain the text. #extrae imagenes desde pdf import sys #definimos el pdf ->path pdf = file(path, "rb").read(...
asked by 04.06.2018 / 17:52
0
answers

Problem with Tensorflow API

I'm starting in this world of using the Tensorflow api, so these days I tried to try several demos, among them is to make the object detection in real time with webcam, the truth is not me has worked, try other ways, but now this API is...
asked by 04.06.2018 / 20:25
0
answers

Function attribute within a class

I'm trying to use the Gmail API, and for now I'm on the right track, now I'm trying to make the execution of the program a little more orderly by adding conditional etc ... It turns out that I have the following problem: I have a class called...
asked by 04.06.2018 / 19:25
0
answers

Iterate over a list of web elements with selenium python

I have problems to access each of the elements of a web listing with selenium ( link ), the code I have allows you to surf the web but unfortunately does not leave the first element, repeats the process over and over again over the first. I woul...
asked by 05.06.2018 / 01:33
0
answers

STM32F407 USART transmit

I am doing the programming of a stm32f407 that communicates with a raspberry by usart. stm32 code: while (1) { HAL_UART_Transmit_IT(&huart2, "hola mundo",10 ); HAL_Delay(200); } python code in PI: import serial ser...
asked by 05.06.2018 / 16:24
0
answers

Why do not you recognize the column name with sqlite3?

I am developing a simple code to store and retrieve information in a database to learn how to use sqlite3 in python. The save part works fine but not the recovery part, I throw the following error when the column does exist: sqlite3.OperationalE...
asked by 02.06.2018 / 19:28
1
answer

how to translate Latin characters to Html entities using flask

I'm using Flask, to capture a text with an Html form. In the form I have put the acept-encoding=ISO-8859-1 . But when in the form I type a tiny letter, it turns out that through the POST of the form, I get a UNICODE, with ordinal 65533. An...
asked by 03.06.2018 / 11:09
0
answers

Point adjustments for curves in python

I'm using the numpy release, in particular polyfit (np.polyfit) to find a polynomial curve of degree 1,2,3, ... etc to adjust a set of points (x,y) , I get the coefficients of such polynomials, however , I would like to see if there...
asked by 03.06.2018 / 05:47