OpenCV This function uses OpenCV's HoughCircles method to detect circles in an image. It first converts the image to grayscale, then applies GaussianBlur to reduce noise, and finally uses Hough transform to detect circles. 2024-12-16 12:13:51 Image processing 11 views
Folium This function creates a map using the Folium library, specifying the center point, zoom level, and markers. The map is saved as an HTML file. 2024-12-16 12:13:51 Function 9 views
unittest, mock, random This test function tests a custom random number generator function. It uses the unittest's mock module to simulate the behavior of the random module, ensuring that the random number generator function returns a fixed value. 2024-12-16 12:13:51 Test function 9 views
Pendulum This function takes a date string as input, converts it to a random timezone, and then converts it back to the original timezone, returning the converted date string. 2024-12-16 12:13:50 Function 21 views
The package and technology stack used in the code[English] This function creates a scatter plot using the Bokeh library. It takes two lists as input, representing the x-axis and y-axis data. 2024-12-16 12:13:50 The type of code 9 views
Pydantic This function uses the Pydantic library to define a user model and uses a generator function to randomly generate user data, then creates a user instance using the model. 2024-12-16 12:13:50 Function 12 views
Questionary library This function randomly selects a question from the given Questionary object, prompts the user to answer the question, and then returns the user's answer. 2024-12-16 12:13:50 Function 12 views
Authlib This function uses the OAuth2Session and RefreshToken classes from the Authlib library to refresh an OAuth2 access token. It first creates an OAuth2 session, then creates a RefreshToken object with the provided refresh token and token URL, and finally calls the refresh method to obtain a new access token. 2024-12-16 12:13:49 Function 8 views
The code uses the SQLAlchemy package and technology stack. The code defines a function that uses SQLAlchemy to create an in-memory database and generates a random user object with random name and age. 2024-12-16 12:13:49 The type of code 10 views
Questionary Define a Python function based on the Questionary library to input a value from the user 2024-12-16 12:13:49 Python Function 9 views