Chadrick's Blog

  • Posts

Posting various stuff…

Uncategorized

useful softwares

diary/journal rednotebook note taking standard notes

By chadrick_author, 4 years ago
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

By chadrick_author, 4 years4 years ago
python

scatter plot opaque dots in a vertical line for one category

By chadrick_author, 4 years ago
deep learning

Focal Loss (a.k.a RetinaNet) paper review

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 admin, 4 years4 years ago
python

change anti-aliasing(AA) option in cairocffi for text

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…

By chadrick_author, 4 years4 years ago
python

cv2 resize interpolation methods

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…

By chadrick_author, 4 years4 years ago
python

example of using python logging logger

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…

By chadrick_author, 4 years4 years ago
python

converting cv2 matrix to cairo surface(ARGB32 format)

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…

By admin, 4 years4 years ago
python

converting cv2 img to cairo surface(cairo.RGB format)

 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…

By chadrick_author, 4 years4 years ago
python

python timestamp snippet

By chadrick_author, 4 years4 years ago

Posts navigation

Previous 1 … 20 21 22 Next
Recent Posts
  • fix blank plot when using plotly in jupyter lab
  • pylance stuck on “Searching for source files”
  • paper review: “Graph Attention Networks”
  • fix “Certificate verification failed” error in apt update of docker container
  • fixing “Could not handshake: An unexpected TLS packet was received” error while apt update in docker container behind corporate proxy
Categories
  • algorithm
  • c/c++
  • cuda
  • data science
  • deep learning
  • error fix
  • kicad
  • kotlin
  • linux
  • postgres
  • python
  • pytorch
  • tensorflow
  • Uncategorized
  • web
Recent Comments
  • Eric on fix ‘certificate apiserver-kubelet-client not signed by CA certificate ca: crypto/rsa: verification error’ error during minikube start
  • Anonymous on qtwindeploy output missing ‘libgcc_s_seh-1.dll’ error fix
  • Andrew Mellinger on python implementation of rotating caliper algorithm
  • minhln14 on get rotation angle between two vectors
  • Anonymous on fix ‘certificate apiserver-kubelet-client not signed by CA certificate ca: crypto/rsa: verification error’ error during minikube start
Archives
  • September 2022
  • July 2022
  • June 2022
  • May 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
  • June 2021
  • May 2021
  • April 2021
  • March 2021
  • February 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • February 2020
  • January 2020
  • December 2019
  • November 2019
  • October 2019
  • September 2019
  • August 2019
  • July 2019
  • June 2019
  • May 2019
  • April 2019
  • March 2019
  • February 2019
  • January 2019
  • December 2018
  • November 2018
Meta
  • Register
  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
  • Posts
Hestia | Developed by ThemeIsle