Questions tagged as 'python'

1
answer

How can I display content captured by the camera in full screen in OpenCV?

Would you like to know how to show captured webcam content (via videoCapture) in a window that occupied the entire screen? Only appears in a small window. Do you have to change something in imshow(" imagem ", frame) ?     
asked by 01.04.2017 / 21:00
2
answers

How to format datetime in YYYY-MM-DDThh format: mm: ss.sTZD in Django / Python?

I'm having a difficulty in Django in returning the datetime at the local timezone. In Django I set USE_TZ=True and TIME_ZONE = 'America/Sao_Paulo' When calling timezone.now() , return the datetime with time in utc, I do no...
asked by 27.02.2015 / 02:56
1
answer

Python - Test Read Permissions

Is there a function that returns, in Python, True if I have read permissions on the file in python?     
asked by 04.03.2015 / 00:31
1
answer

Transform an array to string in python

I'm trying to convert an array to a string and add the "|" at the beginning and end of each field Below the example array ['', 'C170', '1', '14879', '', '1,00000', 'UN', '29,99', '0,00', '1', '060', '1407', 'NE09', '0,00', '0,00', '0,00',...
asked by 19.01.2017 / 09:51
1
answer

can not multiply sequence by non-int of type 'float'

   Error: can not multiply sequence by non-int of type 'float' I'm facing this error, I know it involves variable types, but I do not know how to make Entry get a value of type float #TRANSOFORMAÇÃO DE COORDENADAS GEODÉSICAS EM COORDENADAS...
asked by 11.01.2017 / 02:14
2
answers

Regular "permissive" expression to detect allowed extensions and hosts

I have a list with some links https://www.exemplo.com/ https://www.exemplo.com/home/ https://www.exemplo.com/logo.png https://intranet.exemplo.com/ https://admin.exemplo.com/login https://www.exemplo.com/sobre/ https://www.exemplo.com/shell.ph...
asked by 18.06.2016 / 22:31
1
answer

While in Python Timer

How to make a timer while? I would like to execute a while, and do something, eg. a print "hello" run "hello" print for 1 hour for example.     
asked by 19.06.2016 / 19:29
1
answer

Check if there is a file if there is a PYTHON report.

Verify that the folder no longer exists, if it exists, it should print a message to the user indicating. I got stuck without knowing how to check something related to this: os.listdir() os.mkdir (input('Insira o nome:')) if os.path.exists (...
asked by 05.06.2016 / 07:16
1
answer

How to remove image noise using opencv - python?

I am working with skin images, in recognition of skin blemishes, and due to the presence of noises, mainly by the presence of hairs, this work becomes more complicated. I have an image example in which I work in an attempt to highlight only t...
asked by 10.10.2018 / 22:20
1
answer

How to remove noises and rows of image with presence of hairs?

I'm working with hair removal on skin images. Searching the literature, the means to achieve my goal, is by applying some techniques of segmentation and noise removal in images. Which I'm applying to. An example image I work for is this: Applyi...
asked by 11.11.2018 / 00:55