def getRandomPixePositionl():
"""
Returns the position of a random pixel in the image
"""
# Get image size
width, height = getSize()
# Get random pixel
a, b = random.randint(0, width - 1), random.randint(0, height - 1)
# Debug
if args.debug:
print('...debug -> random pixel: %d , %d' % (a, b))
return a, b
评论列表
文章目录