소스 검색

Move anime face model to root, ignore builds folder

ghorsington 4 년 전
부모
커밋
949e438043
3개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 2
      .gitignore
  2. 0 0
      animu.xml
  3. 1 1
      src/commands/facemorph.ts

+ 1 - 2
.gitignore

@@ -1,5 +1,4 @@
-*.js
-*.js.map
+build/
 
 *.sqlite
 

build/animu.xml → animu.xml


+ 1 - 1
src/commands/facemorph.ts

@@ -11,7 +11,7 @@ import { ObjectChain } from "lodash";
 
 const EMOTE_GUILD = "505333548694241281";
 
-const animeCascade = new cv.CascadeClassifier(path.resolve(__dirname, "../animu.xml"));
+const animeCascade = new cv.CascadeClassifier(path.resolve(process.cwd(), "animu.xml"));
 const faceCascade = new cv.CascadeClassifier(cv.HAAR_FRONTALFACE_ALT2);
 
 type ImageProcessor = (faces: cv.Rect[], data: Buffer) => Promise<Jimp>;