image-manipulation

How do i produce Unique result with Google's custom image in python

How do i produce Unique result with Google's custom image in python Question: so Im using Google’s Custom search api for python (3.6.6) to search for custom Images, i’ve been using this code: from googleapiclient.discovery import build import pprint my_api_key = ‘AIzaSyDouxn16TxJ8vym5AC1_A3nlMCzc5gpRjg’ my_cse_id = ‘007260579175343269764:pt3gyxmajmg’ def google_search(search_term, api_key, cse_id, **kwargs): service = build(“customsearch”, “v1”, developerKey=api_key) …

Total answers: 1

PIL how to scale text size in relation to the size of the image

PIL how to scale text size in relation to the size of the image Question: I’m trying to dynamically scale text to be placed on images of varying but known dimensions. The text will be applied as a watermark. Is there any way to scale the text in relation to the image dimensions? I don’t …

Total answers: 4

Numpy image – rotate matrix 270 degrees

Numpy image – rotate matrix 270 degrees Question: I’ve got a Numpy 2d array that represents a grey-scale image and I need to rotate it 270 degrees. Might be being a bit thick here but the two ways I can find to do this seem quite… circulous: rotated = numpy.rot90(numpy.rot90(numpy.rot90(orignumpyarray))) rotated = numpy.fliplr(numpy.flipud(numpy.rot90(orignumpyarray))) I’m thinking …

Total answers: 2

practice with threads in python

practice with threads in python Question: I know that Python has a global lock and i’ve read Glyph’s explaination of python multithreading. But I still want to try it out. What I decided to do as an easy (conceptually) task was to do horizontal and vertical edge detection on a picture. Here’s what’s happening (pseudocode): …

Total answers: 5

Image Processing, In Python?

Image Processing, In Python? Question: I’ve recently come across a problem which requires at least a basic degree of image processing, can I do this in Python, and if so, with what? Asked By: akdom || Source Answers: There is actually a wonderful Python Imaging Library (PIL). It gives you the ability to alter existing …

Total answers: 8