'잡동사니'에 해당되는 글 13791건

  1. 2025.08.22 gstreamer pipeline
  2. 2025.08.22 facenet
  3. 2025.08.21 gstreamer tee 예제
  4. 2025.08.21 gstreamer capsfilter
  5. 2025.08.21 open tablet driver
  6. 2025.08.21 bq40z50 온도 값
  7. 2025.08.21 iperf3 설정별 속도
  8. 2025.08.20 openGL VAO ABO
  9. 2025.08.20 openGL display list, deprecated
  10. 2025.08.20 blender로 stl 구멍 메우기

nxp의 selfie_segmenter.py 에서 추출한 파이프라인

원래 나온거랑은 약간의 줄 추가가 있을 뿐 순서는 차이가 없음

 

특이(?)하게도 v4lsrc가 가장 처음에 시작하는게 아니라

imxpositor_g2d 라고 입력받은걸 양쪽으로 출력하는 비디오 믹서가 파이프라인의 시작에 존재한다.

imxcompositor_g2d latency=33333333 min-upstream-latency=33333333 name=comp sink_1::ypos=0 sink_0::ypos=0 sink_0::xpos=480 \
! cairooverlay name=cairo_text \
! fpsdisplaysink name=wayland_sink text-overlay=false video-sink=waylandsink \
v4l2src device=/dev/video3 \
! video/x-raw,width=640,height=480,framerate=30/1 \
! aspectratiocrop aspect-ratio=1/1 \
! imxvideoconvert_g2d rotation=horizontal-flip \
! video/x-raw,width=480,height=480 \
! tee name=t \
t. ! queue max-size-buffers=1 leaky=2 \
! imxvideoconvert_g2d \
! video/x-raw,width=256,height=256 \
! videoconvert \
! video/x-raw,format=RGB \
! tensor_converter \
! tensor_transform mode=arithmetic option=typecast:float32,div:255.0 \
! tensor_filter framework=tensorflow-lite model=/opt/gopoint-apps/downloads/selfie_segmenter_int8.tflite accelerator=true:npu custom=Delegate:External,ExtDelegateLib:libvx_delegate.so name=tensor_filter latency=1 \
! tensor_decoder mode=image_segment option1=snpe-depth option2=0 \
! imxvideoconvert_g2d \
! video/x-raw,width=480,height=480,format=RGBA \
! comp.sink_0 \
t. ! queue max-size-buffers=1 leaky=2 \
! comp.sink_1

 

자리를 조금 움직여서 보기 편하게(?) 만들면 아래와 같이

v4lsrc로 시작해서 fpsdisplaysink 로 끝내는 순차적인 구성으로 변경이 가능하다.

v4l2src device=/dev/video3 \
! video/x-raw,width=640,height=480,framerate=30/1 \
! aspectratiocrop aspect-ratio=1/1 \
! imxvideoconvert_g2d rotation=horizontal-flip \
! video/x-raw,width=480,height=480 \
! tee name=t \
t. ! queue max-size-buffers=1 leaky=2 \
! imxvideoconvert_g2d \
! video/x-raw,width=256,height=256 \
! videoconvert \
! video/x-raw,format=RGB \
! tensor_converter \
! tensor_transform mode=arithmetic option=typecast:float32,div:255.0 \
! tensor_filter framework=tensorflow-lite model=/opt/gopoint-apps/downloads/selfie_segmenter_int8.tflite accelerator=true:npu custom=Delegate:External,ExtDelegateLib:libvx_delegate.so name=tensor_filter latency=1 \
! tensor_decoder mode=image_segment option1=snpe-depth option2=0 \
! imxvideoconvert_g2d \
! video/x-raw,width=480,height=480,format=RGBA \
! imxcompositor_g2d latency=33333333 min-upstream-latency=33333333 name=comp sink_1::ypos=0 sink_0::ypos=0 sink_0::xpos=480 \
! cairooverlay name=cairo_text \
! fpsdisplaysink name=wayland_sink text-overlay=false video-sink=waylandsink \
t. ! queue max-size-buffers=1 leaky=2 \
! comp.sink_1

 

tee 로 나눈걸 다시 명시적으로 하는걸 생략하면 아래처럼도 변형가능하다.

v4l2src device=/dev/video3 \
! video/x-raw,width=640,height=480,framerate=30/1 \
! aspectratiocrop aspect-ratio=1/1 \
! imxvideoconvert_g2d rotation=horizontal-flip \
! video/x-raw,width=480,height=480 \
! tee name=t \
! queue max-size-buffers=1 leaky=2 \
! imxvideoconvert_g2d \
! video/x-raw,width=256,height=256 \
! videoconvert \
! video/x-raw,format=RGB \
! tensor_converter \
! tensor_transform mode=arithmetic option=typecast:float32,div:255.0 \
! tensor_filter framework=tensorflow-lite model=/opt/gopoint-apps/downloads/selfie_segmenter_int8.tflite accelerator=true:npu custom=Delegate:External,ExtDelegateLib:libvx_delegate.so name=tensor_filter latency=1 \
! tensor_decoder mode=image_segment option1=snpe-depth option2=0 \
! imxvideoconvert_g2d \
! video/x-raw,width=480,height=480,format=RGBA \
! imxcompositor_g2d latency=33333333 min-upstream-latency=33333333 name=comp sink_1::ypos=0 sink_0::ypos=0 sink_0::xpos=480 \
! cairooverlay name=cairo_text \
! fpsdisplaysink name=wayland_sink text-overlay=false video-sink=waylandsink \
t. \
! queue max-size-buffers=1 leaky=2 \
! comp.sink_1

'프로그램 사용 > gstreamer' 카테고리의 다른 글

gstpipelinestudio  (0) 2025.09.11
gstreamer 기초  (0) 2025.08.27
gstreamer tee 예제  (0) 2025.08.21
gstreamer capsfilter  (0) 2025.08.21
gstreamer parse_launch  (0) 2024.01.11
Posted by 구차니

코드분석하다 보니 신경망 모델중에

facenet_int_quantized.tflite 이런파일이 보여서 imagenet 처럼 머하는건가 찾아보는데

128 차원 임베딩 벡터란걸 학습시켜 비교를 한다는데

일단 코드 상으로는

결과물이 128 개의 배열로 나온다.

그리고 그걸 코사인 유사로 계산을 통해서 두개의 백터가 유사하다면 동일 인물로 추정하는 것 같은데..

 

 

[링크 : https://cake.tistory.com/44]

[링크 : https://hwangtoemat.github.io/paper-review/2020-04-02-FaceNet-%EB%82%B4%EC%9A%A9/]

[링크 : https://wikidocs.net/151188]

[링크 : https://hyunah-home.tistory.com/entry/Facenet-얼굴-인식-모델-Fine-tuning-하기]

[링크 : https://hayunjong83.tistory.com/50]

'프로그램 사용 > yolo_tensorflow' 카테고리의 다른 글

내장 그래픽으로 ROCm?  (0) 2025.09.05
ai 모델들 조사  (0) 2025.09.04
NMS, soft-NMS  (0) 2024.01.15
VGG-16 / VGG-19  (0) 2024.01.11
MobileNetV2 SSD FPN-Lite  (0) 2024.01.11
Posted by 구차니

gemini를 찬양하라(?)

 

# Example with avenc_aac
gst-launch-1.0 -e \
filesrc location=video1.mp4 ! decodebin name=demux1 \
filesrc location=video2.mp4 ! decodebin name=demux2 \
demux1. ! queue ! videoconvert ! x264enc ! tee name=vtee1 \
demux1. ! queue ! audioconvert ! audioresample ! avenc_aac ! tee name=atee1 \
demux2. ! queue ! videoconvert ! x264enc ! tee name=vtee2 \
demux2. ! queue ! audioconvert ! audioresample ! avenc_aac ! tee name=atee2 \
vtee1. ! queue ! mp4mux name=mux1 ! filesink location=output1.mp4 \
vtee2. ! queue ! mp4mux name=mux2 ! filesink location=output2.mp4 \
atee2. ! queue ! mux1.audio_0 \
atee1. ! queue ! mux2.audio_0

 

name. 으로 해서 이전것에서 새끼(?)치면 되나보다.

굳이 그리자면 이런식으로 나오는 듯.

 

2021.02.08 - [프로그램 사용/gstreamer] - gstreamer tee

 

'프로그램 사용 > gstreamer' 카테고리의 다른 글

gstreamer 기초  (0) 2025.08.27
gstreamer pipeline  (0) 2025.08.22
gstreamer capsfilter  (0) 2025.08.21
gstreamer parse_launch  (0) 2024.01.11
nnstreamer  (0) 2023.12.20
Posted by 구차니

gstreamer 파이프라인 예제를 보다가 이상한걸 발견

video/x-raw가 엘리먼트 이름은 아닐텐데..하고 gpt에 물어보니 capsfilter 라고 해서 찾아보니

gst-launch-1.0 -v v4l2src ! videorate ! video/x-raw,framerate=25/2 ! theoraenc ! oggmux ! filesink location=recording.ogg

[링크 : https://gstreamer.freedesktop.org/documentation/videorate/?gi-language=c]

 

"capsfilter caps=" 생략하고 쓰면 알아서 capsfilter로 인식하는 건가?

Example launch line
 gst-launch-1.0 videotestsrc ! capsfilter caps=video/x-raw,format=GRAY8 ! videoconvert ! autovideosink

Limits acceptable video from videotestsrc to be grayscale. Equivalent to
 gst-launch-1.0 videotestsrc ! video/x-raw,format=GRAY8 ! videoconvert ! autovideosink

[링크 : https://gstreamer.freedesktop.org/documentation/coreelements/capsfilter.html?gi-language=c]

 

'프로그램 사용 > gstreamer' 카테고리의 다른 글

gstreamer pipeline  (0) 2025.08.22
gstreamer tee 예제  (0) 2025.08.21
gstreamer parse_launch  (0) 2024.01.11
nnstreamer  (0) 2023.12.20
gst-device-monitor-1.0  (0) 2023.12.06
Posted by 구차니
하드웨어/pen tablet2025. 8. 21. 12:07

윈도우에서 다뤄보고 리눅스로 오니 정밀모드가 없어서 찾아보다 발견한 드라이버

 

[링크 : https://opentabletdriver.net/]

   [링크 : https://www.reddit.com/r/wacom/comments/18s5kjm/is_there_a_way_to_disable_the_dim_overlay_on/]

 

플러그 인들이 있는데 PrecisionControl을 설치하면 DPI 제어가 가능해지는 듯.

[링크 : https://github.com/X9VoiD/VoiDPlugins/wiki/PrecisionControl]

'하드웨어 > pen tablet' 카테고리의 다른 글

ubuntu wacom express key 에 esc 등록하기  (0) 2025.08.29
ubuntu에서 wacom 활성영역 설정하기  (0) 2025.08.28
와콤 펜 종류  (0) 2025.08.18
wacom 진단  (0) 2025.08.18
wacom on window  (2) 2025.08.18
Posted by 구차니
회사일/전자부품2025. 8. 21. 11:58

이전에 사용하고 있던 0x08의 온도가 어떤 온도를 측정하고 있는건지 보는데 영 안나오네

 

레지스터 자체에서는 온도를 돌려준다로 끝이고

 

함수명으로 검색해보니 셀의 온도를 돌려준다..? 셀의 온도를 어떻게 측정하지?

 

벤더명령어를 이용하면 내부온도 / Thermistor 온도 1~4를 획득이 가능하다고 한다.

 

어떤 온도를 활성화 할지는 아래 레지스터에서 설정하고

 

특정 온도를 셀 온도로 간주해주면 되는건가?

 

그런데 0x0072와는 무슨 차이인걸까?

 

[링크 : https://www.ti.com/lit/ug/sluua43a/sluua43a.pdf?ts=1755744458780]

'회사일 > 전자부품' 카테고리의 다른 글

ptn5110 usb-pd rdo 응답  (0) 2025.01.15
ad5292 wiper 값  (0) 2025.01.06
ads8598  (0) 2024.11.13
ad4111  (0) 2024.11.07
ad5292 write protect  (0) 2024.11.07
Posted by 구차니
embeded/odroid2025. 8. 21. 11:13

odroid c2 <-> notebook(gbe) 간의 퍼포먼스 테스트

 

length 1514

$ iperf3 -l 45 -c 192.168.220.50
Connecting to host 192.168.220.50, port 5201
[  5] local 192.168.220.108 port 50248 connected to 192.168.220.50 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec  7.75 MBytes  65.0 Mbits/sec    0   62.2 KBytes       
[  5]   1.00-2.00   sec  8.03 MBytes  67.4 Mbits/sec    0   62.2 KBytes       
[  5]   2.00-3.00   sec  7.91 MBytes  66.3 Mbits/sec    0   62.2 KBytes       

 

length 144

$ iperf3 -l 45 -M 90 -c 192.168.220.50
Connecting to host 192.168.220.50, port 5201
[  5] local 192.168.220.108 port 48086 connected to 192.168.220.50 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec  11.1 MBytes  92.9 Mbits/sec  270   31.8 KBytes       
[  5]   1.00-2.00   sec  2.52 MBytes  21.1 Mbits/sec    5   31.8 KBytes       
[  5]   2.00-3.00   sec  2.33 MBytes  19.5 Mbits/sec    5   17.4 KBytes   

 

length 144

$ iperf3 -M 90 -c 192.168.220.50
Connecting to host 192.168.220.50, port 5201
[  5] local 192.168.220.108 port 40712 connected to 192.168.220.50 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec  18.4 MBytes   155 Mbits/sec   44   30.2 KBytes       
[  5]   1.00-2.00   sec  19.4 MBytes   163 Mbits/sec    4   39.8 KBytes       
[  5]   2.00-3.00   sec  18.9 MBytes   159 Mbits/sec   10   37.9 KBytes    

 

length 1514

$ iperf3 -c 192.168.220.50
Connecting to host 192.168.220.50, port 5201
[  5] local 192.168.220.108 port 35404 connected to 192.168.220.50 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec   112 MBytes   940 Mbits/sec   21    554 KBytes       
[  5]   1.00-2.00   sec   112 MBytes   944 Mbits/sec    0    691 KBytes       
[  5]   2.00-2.94   sec   105 MBytes   937 Mbits/sec    0    701 KBytes      
Posted by 구차니
Programming/openGL2025. 8. 20. 19:14

'Programming > openGL' 카테고리의 다른 글

openGL display list, deprecated  (0) 2025.08.20
visual studio 2002 에서 openGL 예제 실행  (0) 2025.07.30
openGL light  (0) 2025.07.30
openGL shade  (0) 2025.07.30
openGL 은선제거  (0) 2025.07.29
Posted by 구차니
Programming/openGL2025. 8. 20. 19:12

예전 openGL 책보다가 매번 해보지 못했던 부분인데

[링크 : http://www.gisdeveloper.co.kr/?p=76]

 

deprecated 되었다고 한다.

Note that these features were deprecated in 3.0, and actually removed in 3.1 (but still provided compatibility via an ARB extension). In OpenGL 3.2, they moved these features into a 'compatibility' profile that is optional for driver writers to implement.

[링크 : https://stackoverflow.com/questions/4113989/why-were-display-lists-deprecated-in-opengl-3-1]

 

오래되긴 했네..

OpenGL 3.1

출시일: 2009년 3월 24일

[링크 : https://ko.wikipedia.org/wiki/OpenGL]

'Programming > openGL' 카테고리의 다른 글

openGL VAO ABO  (0) 2025.08.20
visual studio 2002 에서 openGL 예제 실행  (0) 2025.07.30
openGL light  (0) 2025.07.30
openGL shade  (0) 2025.07.30
openGL 은선제거  (0) 2025.07.29
Posted by 구차니
프로그램 사용/Blender2025. 8. 20. 17:37

아..하?

 

Go to blender, remove vertical faces, select circle dots and press F.

[링크 : https://www.reddit.com/r/FreeCAD/comments/16rbcnx/how_to_fill_the_hole/?tl=ko]

 

모델을 받고

[링크 : https://www.thingiverse.com/thing:5418222]

 

싱기버스에서 받아서 stl로 불러올때 0.001 sclae로 해주니 얼추 사이즈가 맞게 나오는것 같다.

근데  scenedml length를 meter에서 milimeters로 바꾸어도 왜 불러올때 scene unit을 체크해도 사이즈가 변함없을까..

 

 

열심히 edit mode 에서 면을 고르고

 

면을 삭제한 뒤

 

주변을 선택하고

 

'F'를 눌러 fill 해주면 감쪽같이!

 

오.. 폴리곤을 줄이면서 단순화 하려면 방법이 없나?

'프로그램 사용 > Blender' 카테고리의 다른 글

gemini + blender  (0) 2025.09.01
blender 휠 에뮬레이트 하기  (0) 2025.05.18
blender + kinect  (0) 2025.04.16
blender 강좌  (0) 2025.01.01
blender render - cycle, eevee  (0) 2024.08.30
Posted by 구차니