Category "python-3.x"

how to identify type of noise (if Gaussian/salt and paper etc) in an image using python

Experts, From Noise Estimation / Noise Measurement in Image , we understood that if any image is having noise or not. but different types of noise has diffe

Ubuntu Terminal Opens Python Instead of Running Python File

I'm trying to run a python script from the Ubuntu terminal with python3 index.py but Ubuntu just opens the Python terminal instead of running the actual script.

im not able to save the screen shot from python

kindly help me im not able to save the screen shot on the desired folder the code is running however the screen shot is not saving on the path please help impor

PyGTK entry.set_placeholder_text doesnt work - missing tex

I am attaching a piece of my code in which I try to display the text in the Entry field with predefined text. I use entry.set_placeholder_text for this, but unf

selenium.common.exceptions.SessionNotCreatedException: Message: session not created from timeout: Timed out receiving message from renderer: 600,000

I get following error: selenium.common.exceptions.SessionNotCreatedException: Message: session not created from timeout: Timed out receiving message from render

how to stop a func from running and return a value after one minute?

I would like to call a func and stop it from running after one minute, returning a value. i have a code that looks similar to that: def foo(txt): best_value=

Cannot perform std with type object Dask

performing normal calculation on dask is giving me the error x_std = x.std().compute() Computing head: x.head() LocalTime Ask Bid 0 20

Unable to download data from Blob storage. Getting 404 returned

I'm using a Python Azure function which gets invoked when I add a blob to a storage container. The function is triggered ok, but I get a 404 response when tryin

Filter between dates in MongoEngine

I have a problem filtering between date_from and date_to in MongoEngine. This is the document structure and the next MongoEngine query: def devices_graph(device

MLFlow trying to launch non-existent python

Launching mlflow ui from a brand new conda environment, called, say B, results in: Fatal error in launcher: Unable to create process using '"C:\Users\user_name

How it's logically possible to exit this loop while gathering data

here's the API for refence: https://github.com/JeremySkalla/pysmashgg/tree/3b04a4b2d83bbfe765c519ac37c437f478984742 There is a function in the API event_by_game

Displaying a stacked bar graph with nested lists

I am trying to display a stacked bar graph.I have 3 lists as shown below- totalpointperxaxis [6, 9, 13, 5, 14, 382, 26, 2, 45, 2] clusternamesList [['Cluster1'

How to write a method to check independence which returns a dictionary of length 3

I having some difficulty to try to understand the question and I am not very sure how to get a method to returns a dictionary of length 3. This is the sample ta

Python - TensorFlow - Facial Recognition App

I follow guide to build facial recognition app , code runs in problem on training models every thing runs fine except the training models: any suggestions ? @tf

How to handle special characters in the string while updating a table using python

Im trying to update some rows to a table, in one of the row a string is having few special charecters. I should be updating the string as is to the db. I have t

How to handle special characters in the string while updating a table using python

Im trying to update some rows to a table, in one of the row a string is having few special charecters. I should be updating the string as is to the db. I have t

trying to send data from one script in python to another script

I am trying to write a script so when an IP address can't be seen a message gets sent with a telegram letting me know which computer is offline I have been able

Blender Addon in file menu

I have created a blender addon watching videos as I do not have knowledge of python. So I want to place that addon in Blender file menu but it is deleting all t

How to start stop windows service without admin rights prompt in Python?

I have tried various solutions given in the links below to start, stop Windows Service (rabbitmq) in a PyTest without any admin rights prompt (so it can run con

Nested bar plots with three y axis using seaborn package

Using the python seaborn package I was trying to plot the nested bar graphs with three different y-axes as shown in the below figure: And the code that I have