I need to detect a selected area in a photo: Original photo: I used this code: import cv2 as cv import numpy as np img = cv.imread(cv.samples.findFile('./Pict
I'm using openpyxl 2.5.6 and py 3.7.0. My goal is to read an Excel workbook and print both the contents and the formatting of each cell into a CSV. For instance
I have a little issue with saving image with PIL. In my Django project I have the following save method: from PIL import Image class Photo: image = models.
I'm doing a feature study and I was wondering what the negative feature weights in the audit output signify. I'm currently using the contextual bandits function
Could you help me with the code such that along with the dense layers also the last convolutional layer of Efficientnet is trained as well ? features_url ="http
So I have written this piece of code in python3 guizero to change colour to red when I click the button I created. But whatever I do it's not working! I am not
I am writing a Python code which needs to interoperate with C code which I also wrote. In C I have a section like #define FOO 23 // whatever #define BAR 54.3
I really stuck in this problem for a long time. I have a data frame, I want to group the data based on the ids and then stick the values for each id together. H
I've been working on learning more about the Canvas() widget in tkinter, so I decided to build a simple paint app just for practice. To achieve this, I created
Recently i saw a competitive coding question, the bruteforce approach doesn't meet the time complexity, Is there any other solution for this, Question: An expan
I have a keras model trained for occupancy detection of parking spaces, which I load using keras.models.load_model(PATH_TO_MODEL). The input for the model is a
My code below is to be used in a GUI that has two buttons. One to ask the user to locate a txt file, the other to run a function using that file to clean the da
I'm trying to extract the simulated heads from a MODFLOW-USG binary head-save file, so I'm using flopy as follows: modelname = 'Model' import flopy.utils.binar
I decided to pass google curse for python beginners and stuck on this question. It is optional to solve but I'm angry about it as I understand that it is simple
am trying to get a Json value out of Django Paginator object so that i can return it back to html file as a json response via JsonResponse method.Please help He
Let's say we are using Kafka with manual commits. We are processing the incoming message. But if there is a failure in processing for any reason, we want to rer
I have nrrd files of the brain tumor. When reading the file into an array with a header and passing the code print(filename), I get an array of zeros. I checked
The idea: I want to send some json tweets (from file) to AWS kinesis, S3, lambda, AWS comprehend then S3 again. The sample tweets: [ { "tweet_id": 56758
I am creating program that helps processing microstructure images. One of the function is detecting circles with the same radius. User draws one circle, my prog
I am attempting to build a lambda function connected to an API gateway POST method that will allow users to create and register cognito users within a given poo