python
automatically downloading google images
use googleimagedownload python library. pypi link here’s an example to run by importing if you want a lot of keywords, try this code
use googleimagedownload python library. pypi link here’s an example to run by importing if you want a lot of keywords, try this code
I have heard so much about Retinanet in the realm of object detection and recently I had the chance to read the paper. Surprisingly, the paper is titled with “focal loss” and not “RetinaNet”. The most important lesson that I learned Read more…
By default, cairocffi will apply AA. If you want to disable or finetune the AA option when writing text, then check out the example code. Here is a no-AA image and a default AA settings image. for doc on AA Read more…
INTER_NEAREST – a nearest-neighbor interpolation INTER_LINEAR – a bilinear interpolation (used by default) INTER_AREA – resampling using pixel area relation. It may be a preferred method for image decimation, as it gives moire’-free results. But when the image is zoomed, it is similar Read more…
at the main script, insert the code below to setup a logger named debug. In the above code, I have set the debug logger to print its text to both sys.stdout(providing the same effect as a normal print) and to a Read more…
In an earlier post, converting an existing cv2 matrix to cairo surface using cairo. RGB format was demonstrated. However, sometimes the user wants to load a specific image as the background in a semi-transparent manner in the cairo surface, like Read more…
When working with cairo, occasions arise when the user wants to directly load a surface from an image. Of course, one can use the create_from_png method but what if the user already has a variable that hold the image data in memory? Read more…
The problem I practically wasted about two days because of this issue. I had no idea that wordpress could indirectly mess up with my nginx configuration. If you are facing the following symptom when setting up wordpress with nginx, you Read more…