I try to find the minimum enclosing circles of shapes in an image. My function find_minEnclosingCircles processes an image to detect contours and then finds the minimum enclosing circle for each contour. I've noticed that to capture all relevant...
I am trying to communicate from AutoIt with a Python TCP server using encryption, but I think there's something wrong with my algorithms since the results of both encryptions/decryptions are different:
I want to extract graphs and charts from PDF, that are not visible when using typical image extraction from module fitz. I've noticed that all of them are in a frame, so they should be not that hard to find. I also don't want to extract data from...
I have a products table that has a lot of columns, which from these, the following ones are important for our search:
Title 1 to Title 6 (title in 6 different languages) Brand name Category name Product attributes like size, color, etc.
We are...
I am using aiohttp to make a simple HTTP request in python 3.4 like this:
response = yield from aiohttp.get(url) The application requests the same URL over and over again so naturally I wanted to cache it. My first attempt was something like...
I am encountering an issue with Django, psycopg, and PostgreSQL regarding the handling of timezone-aware datetimes. Below are the details of my setup and the problem I'm facing:
Environment Library Version psycopg 3.1.18 Django 4.2.10 PostgreSQL...
def decrypt(self): if not os.path.exists(self.filename): raise Exception('File does not exist!') # Read the salt and HMAC digest from the separate file with open(self.filename + '.salt', 'rb') as file: k_sz = Fernet.key_size salt = file.read(k_sz)...
I have a large python codebase which I converted and compiled into cython modules. I now run the main function of my cython codebase using a python wrapper script file. In command line I run:
I am trying to access a specific endpoint in my REST API, one of my modules is passing a client URI into a module.sync_detailed (client, device). However, I get
AttributeError: 'str' object has no attribute 'get_httpx_client'
I can’t figure out what the function is to call multiple functions to print full words in Star Pattern from my program below. This is another thing I am practicing from the program I have.
There are 2 similar buttons(lets call them Install button) in the DOM, but i need to select the button using a text that is only available for the html block that button is in.
This is the code i used and the below is the output i got....
I have an angularjs SPA web app which uses ADAL-JS (and adal-angular). It's set up to authenticate vs our corporate AD in MS Azure. The log-in flow seems to work correctly, and the SPA receives an id_token.
Kindly bear with me! Looking an elegant way to get the following requirment to work. Appreciate your help and time!. I'm stuck with the process to fully parallelize which has set of input files per chromosomes in the list (chr1..chr22) to process...
So I'm here trying to learn new tricks on my spare time and I ended with Python. Scraping information from websites could even be of value to may actual work (I'm mainly an ER doctor but I also do clinical audits).
I am running a script written by someone else as a replication. The original script and all the files were created with Python 2.7. I have three scripts: 'prediction_2021', 'performance_2020' and my current script 'prediction' which runs xgboost. I...
I’m working on a classification problem and I’m using a decision tree model. I would like to visualize the decision tree to understand the major rules that lead to a ‘yes’ label. Could someone recommend a Python library or code snippet that can help...
We are writing a web service using Python FastAPI that is going to be hosted in Kubernetes. For auditing purposes, we need to save the raw JSON body of the request/response for specific routes. The body size of both request and response JSON is...
I am performing predictions with FastAPI, using background tasks. Everything seems to be working, but if I warp the background task function in another function and call it then it's not working. Why is this happening? Don't background tasks in...
Вы не можете начинать темы Вы не можете отвечать на сообщения Вы не можете редактировать свои сообщения Вы не можете удалять свои сообщения Вы не можете добавлять вложения