kookmin-sw / 2019-cap1-2019_4

Flex Ads to implement advertising system in offline market
MIT License
10 stars 7 forks source link

detectnet-camera 의 openGL Display 크기 조정 #69

Closed james-sungjae-lee closed 5 years ago

james-sungjae-lee commented 5 years ago

TX1 의 등록 시스템이나, TX2 의 광고 송출 시스템 모두 자신의 얼굴이 인식되는지 정확하게 확인하기 위해

detectnet-camera facenet 을 실행하였을 때, openGL 을 이용해 화면에 렌더링 되는 것을 보여줄 필요가 있다.

하지만, 현재 해당 윈도우는 전체 화면에서 너무 큰 부분을 차지하여 크기를 조정할 필요가 있다.

이에 jetson-inference 코드에서 빌드할 때, opengl 과 관련된 코드를 수정하여 크기를 조정할 수 있는 것으로 보이며, 화면에 검은 부분이 없어지게 하는 것과 크기를 자유롭게 조정할 수 있는 것이 핵심이다.

james-sungjae-lee commented 5 years ago

utils 에 display 와 texture 에 관한 두 가지 파일이 존재한다.

간단한 확인으로는, display 는 윈도우의 크기, texture 는 rendering 되는 화면의 크기로 보인다.

glDisplay.cpp https://github.com/dusty-nv/jetson-utils/blob/2fb2b9dfd8323f99c22d3e2755b88345abd2f3a8/display/glDisplay.cpp

Screen Shot 2019-05-23 at 4 58 46 PM

glTexture.cpp https://github.com/dusty-nv/jetson-utils/blob/2fb2b9dfd8323f99c22d3e2755b88345abd2f3a8/display/glTexture.cpp

Screen Shot 2019-05-23 at 4 56 40 PM

두 가지 코드를 적절하게 수정하여 fix 된 적당한 사이즈로 openGL 화면이 나타나도록 하는 것이 목표이다.

james-sungjae-lee commented 5 years ago

현재는 1280 x 720 사이즈로 나오게 하였으며,

해당 사이즈로 데모를 진행하도록 한다.