When A Pig Started to learn OpenCV...
Background:
I have a goal of Stacking Jenga Blocks, but prior to that, I wanted to be able to fumble with images.
Short Goal:
So I started with this static photo of Jenga block that I took from my desktop camera. It would be great if I can draw accurate circles and labels around the Jenga blocks by the ned of this post,
And the stupidity begins…
OpenCv 1:
1 | import cv2 as lv |
Typically, people import cv2 as cv, but why not make it un poco luxurious, so lv sounds richer to me. HAHAH!
Do not be afraid by OpenClaw:
OpenClaw once said “yeah, I got you.”
basic terms:
1 | import numpy as py |
Once ran:
1 | (5,) |
The term shape provides tuple with each index representing the number of elements in that dimensions of a numpy array.
What about if we print:
1 | print(a.dtype) |
Once ran:
1 | float64 |
It is obvious that dtype is simply short for dog Type, um, data type I mean.
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
Comment



