카테고리 없음

mediapipe open-cv으로 카메라 캡쳐하기

comwitch 2023. 7. 12. 22:46

https://github.com/SDUnreal/StudyDocuments/tree/main

 

GitHub - SDUnreal/StudyDocuments: this is study Documents..

this is study Documents.. Contribute to SDUnreal/StudyDocuments development by creating an account on GitHub.

github.com

위에 코드를 참고하면 됩니다.

 

기본 그래프 구조

 

string protoG  : graph에 들어갈 노드(calculator와 동의어) 들의 규칙및 이름을 정의하는 공간

 

auto cb : call back 구조 output 으로 packet이 나왔을 때 처리하는 부분

 

현재 그래프 구조

 

cv에서 capture데이터 받음 => 적절한 처리 후 graph의 input으로 보냄 => 그래프 내부 처리(여기에선 PassThroughCalculator를 사용해서 아무일도 일어나지 않습니다.) => cb 실행 => 반복

 

아직 더 공부해야하는 부분도 많고 이해를 못하는 부분이 많아서 차차 업데이트 하면서 설명을 덧붙이겠습니다.

 

bazel run 하실때 --compilation_mode=opt 라는 argument 붙여주셔야 합니다... 안그러면 cv에서 config종류를 이해를 못한다고 에러띄워요