OpenCV

How to visualize FaceTracker.cs? 分析された顔情報の可視化

FaceTracker.cs に追記する public bool enableDebugLine = true; ... public void draw(Mat im, Scalar pts_color, Scalar con_color) { int[] smodel_C_int = new int[smodel.C.total()]; Utils.copyFromMat<int>(smodel.C, smodel_C_int); ScaleFaceParts(); C</int>…

Why mat.submat copy unexpected region? Resolved!

I wanted to copy eyeblow region, but copied unexpected region I noticed that cropped region is mirrored by green line I checked docs submat(int rowStart, int rowEnd, int colStart, int colEnd) Extracts a rectangular submatrix. parameter ord…

How to crop rect (rectangular) image from other image? Resolved!

im is bigger image (for example face) sub is cropped smaller image (for example face's eyeblow) Mat sub = new Mat(); int xStart = 500; int xEnd = 800; int yStart = 500; int yEnd = 800; im.submat(yStart, yEnd, xStart, xEnd).copyTo(sub); Deb…

Why my inpaint doesn't work? Resolved!

I rewrite FaceTracker.cs for inpaint eyebrow Checklist img & mask is same size? (width & height) mask is CvType.CV_8UC1 img is CvType.CV_8UC3 Pitfall FaceTrackerExample.cs //Mat imgMat = new Mat(imgTexture.height, imgTexture.width, CvType.…

Qiitaに2つ記事を書いて思った

2カラムのエディタの左にmarkdownで書いて、右でプレビューできるのははてなBlogより書きやすい ただ、アフィリやSEO的にQiitaに捧げているだけとも言える やはり自分のBlogに書いたほうが積み重なる そういえば技術Blogも作ってた(コレ) 次からはここに書…