Converting an image from Cartesian to Polar - Limb Darkening?
import numpy as np import cv2 from matplotlib import pyplot as plt img = cv2.imread('C:\\Users\\not my user name\\D...
'str' object has no attribute 'decode'. Python 3 error??
Here is my code: import imaplib from email.parser import HeaderParser conn = imaplib.IMAP4_SSL('imap.gmail.com') c...
'str' object has no attribute 'decode'. Python 3 error??
Here is my code: import imaplib from email.parser import HeaderParser conn = imaplib.IMAP4_SSL('imap.gmail.com') c...
Python: how to convert a dictionary into a subscriptable array??
I know how to convert a dictionary into an list in Python, but somehow when I try to get, say, the sum of the result...
Python: how to convert a dictionary into a subscriptable array??
I know how to convert a dictionary into an list in Python, but somehow when I try to get, say, the sum of the result...
problem in determining arrow direction in an image?
I have detected existing arrows and shapes in an image and i want to know , how to determine where the arrow is comi...
change figure size and figure format in matplotlib?
I want to obtain fig1 exactly of 4 by 3 inch sized, and in tiff format correcting the program below: import matplo...
draw a circles target using python?
This my program using turtle to draw the circle target: import turtle def origin_circle(turtle, radius): tur...
2d matrix to image of a cone?
I have a 2D numpy matrix of size 512x256. I can easily convert it to an image using PIL, or scipy, etc. but that giv...
Kivy Sprite Sheet?
There is a way to crop sprites sheet in kivy? For example, I have this sprite sheet: And i like to crop and crea...
How to set the font size of a Canvas' text item??
I have the following code: canvas.create_text(x, y, font="Purisa", text= k) How do I set the font size with a var...
Error: Statement expected, found py: Dedent?
we are willing/ forced to develop a small webapp for the university. Now we started and everything seems to be fine,...