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