'2022/01'에 해당되는 글 68건

  1. 2022.01.26 m.2 와 mini PCI-e
  2. 2022.01.25 virtual mouse
  3. 2022.01.25 meson (빌드 시스템)
  4. 2022.01.25 JWST L2 안착
  5. 2022.01.25 coral tpu delegate example
  6. 2022.01.24 mp4 복구 시도
  7. 2022.01.24 wayvnc
  8. 2022.01.24 USB-C to HDMI 컨버터 회로
  9. 2022.01.23 vfp, neon cycle
  10. 2022.01.23 주말인데 야근.

'하드웨어 > 커넥터 (Connector)' 카테고리의 다른 글

FAKRA  (0) 2022.08.17
USB3.0 커넥터  (0) 2022.03.24
M.2  (0) 2022.01.19
rotary joint / rotary unions  (0) 2017.07.12
micro usb 케이블 수리  (0) 2017.02.21
Posted by 구차니
Programming/openCV2022. 1. 25. 18:11

키즈카페에 있는 빔 프로젝터 + 카메라 식으로

카메라를 통해 사람을 인식하고 사람의 영역을 인식해 마우스 이벤트로 혹은

영역을 선택해 해당 영역의 객체를 터트리는 식으로 구현해볼까 고민중..

 

[링크 : https://pythonrepo.com/repo/HxnDev-Virtual-Mouse-using-OpenCV-python-computer-vision]

[링크 : https://thecodacus.com/posts/2021-12-14-gesture-recognition-virtual-mouse-using-opencv/]

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

opencv를 이용한 다중 템플릿 추적  (0) 2024.01.15
cv2.imshow cv2.waitKey  (0) 2022.03.14
opencv-3.4.0 어플리케이션 빌드  (0) 2021.01.14
opencv face detect  (0) 2019.05.10
vscode python3 opencv lint  (0) 2019.05.10
Posted by 구차니
프로그램 사용/meson2022. 1. 25. 15:04

 

 

[binaries]
c = '/usr/lib/ccache/arm-linux-gnueabihf-gcc'
cpp = '/usr/lib/ccache/arm-linux-gnueabihf-g++'
ar = '/usr/bin/arm-linux-gnueabihf-ar'
strip = '/usr/bin/arm-linux-gnueabihf-strip'
pkgconfig = '/usr/bin/arm-linux-gnueabihf-pkg-config'
 
[host_machine]
system = 'linux'
cpu_family = 'arm'
cpu = 'armv8hl'
endian = 'little'
meson build/ \
    --cross-file=$HOME/pi/mesa/cross_file

[링크 : https://makersweb.net/qt/17557]

 

ubuntu 에서 apt install meson 으로 설치시 구버전이라 발생하는 에러

meson_options.txt:1:0: ERROR:  Unknown type feature.

[링크 : https://github.com/swaywm/wlroots/issues/1258]

 

Ninja는 속도에 중점을 둔 소형 빌드 시스템으로, Make의 느린 증분 빌드의 대안으로 만들어졌습니다.

[링크 : https://int-i.github.io/cpp/2021-06-26/cpp-meson/]

Posted by 구차니
개소리 왈왈2022. 1. 25. 10:29

발사한지 벌써 한달

라그랑주 2에 도착했고 발사도 완벽해서 예정보다 오랜 시간 운영이 가능할 것 같다는 걸 보고 있으면

대단하다, 부럽다 라는 생각밖에 안든다.

 

민간 공개인지 아닌면 정말 첫 사진이 여름 즈음에나 도착할진 모르겠네

“Congratulations to the team for all of their hard work ensuring Webb’s safe arrival at L2 today. We’re one step closer to uncovering the mysteries of the universe. And I can’t wait to see Webb’s first new views of the universe this summer!”

[링크 : https://blogs.nasa.gov/webb/2022/01/24/orbital-insertion-burn-a-success-webb-arrives-at-l2/]

 

[링크 : https://www.jwst.nasa.gov/content/webbLaunch/whereIsWebb.html]

'개소리 왈왈' 카테고리의 다른 글

유리화 Vitrify  (0) 2023.05.22
18650 3.7V 배터리 쓰는 선풍기 분해  (0) 2018.04.21
세상에 나쁜 개는 없다 - 차우차우 편  (0) 2018.04.05
네이트온 불안정  (0) 2018.03.12
와 신천지  (0) 2018.02.03
Posted by 구차니

cpp

[링크 : https://github.com/google-coral/tflite]

[링크 : https://coral.ai/docs/edgetpu/tflite-cpp/]

 

 

python

[링크 : https://coding-yoon.tistory.com/91]

 

+

auto* delegate = edgetpu_create_delegate(device.type, device.path, nullptr, 0);
  interpreter->ModifyGraphWithDelegate({delegate, edgetpu_free_delegate});

[링크 : https://github.com/google-coral/tflite/blob/master/cpp/examples/classification/classify.cc]

 

auto delegates = delegate_providers.CreateAllDelegates();
  for (auto& delegate : delegates) {
    const auto delegate_name = delegate.provider->GetName();
    if (interpreter->ModifyGraphWithDelegate(std::move(delegate.delegate)) !=
        kTfLiteOk) {
      LOG(ERROR) << "Failed to apply " << delegate_name << " delegate.";
      exit(-1);
    } else {
      LOG(INFO) << "Applied " << delegate_name << " delegate.";
    }
  }

[링크 : https://github.com/tensorflow/tensorflow/blob/master/tensorflow/lite/examples/label_image/label_image.cc]

 

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

edgetpu_c.h 파일 내용 분석  (0) 2022.02.07
tensorflow brace-enclosed initializer list  (4) 2022.02.07
google coral, tpu yolo  (0) 2022.01.27
google coral, ubuntu 18.04  (0) 2020.10.20
google coral  (0) 2020.10.06
Posted by 구차니

h.264 코덱으로 된 녀석이라 데이터 부분만 빼내서 ffmpeg 거치면 재생이 가능할줄 알았는데 무리인가?

 

[링크 : https://video.stackexchange.com/questions/29073]

[링크 : https://codecpack.co/download/recover-mp4.html]

[링크 : https://stackoverflow.com/questions/19300350]

 

+

2022.02.14

복구 성공!

 

동일 기기에서 촬영된 정상 동영상과 복구할 동영상이 필요함

1. 정상 동영상에서 부터 무언가를 추출

C:\> recover_mp4.exe good.mp4 --analyze
/// 중략
Now run the following command to start recovering:
recover_mp4.exe corrupted_file result.h264 --noaudio --ext

Then use ffmpeg to mux the final file:
ffmpeg.exe -r 12.097 -i result.h264 -c:v copy result.mp4

 

2. 비정상 동영상으로 부터 h264 만 추출

위에서 알려준 옵션대로 처리해야 복구가 진행된다.

C:\> recover_mp4.exe corrupted_file result.h264 --noaudio --ext
// 중략
skip: 0x001C02C5 [0x       6] ???           {00 00 00 02 09 F0}
H264: 0x001C02CB [0x    15CA] -> 0x  1BF903 {41 9B A0 14} P frame
%100.000
Complete!
H264 non-IDR NAL unit size: Min 0x4, Avg 0x1289, Max 0x366C
Video=99.864
'result.h264' created, size 1838797 (99.864%)

 

3. 복구 데이터를 이용해서(아마도 h.264 스트림?) mp4로 변환

-r 뒤의 숫자는 framerate 니까 굳이 안 넣어 주면 원본의 속도로 복구 된다. (안되면 넣어주는게 좋을 듯)

C:\> ffmpeg.exe -r 30 -i result.h264 -c:v copy recovered.mp4
Input #0, h264, from 'result.h264':
  Duration: N/A, bitrate: N/A
  Stream #0:0: Video: h264 (Constrained Baseline), yuv420p(progressive), 800x480, 25 fps, 25 tbr, 1200k tbn
Output #0, mp4, to 'recovered.mp4':
  Metadata:
    encoder         : Lavf59.16.100
  Stream #0:0: Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p(progressive), 800x480, q=2-31, 25 fps, 25 tbr, 15360 tbn
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
[mp4 @ 0000020bce548780] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
frame=  363 fps=0.0 q=-1.0 Lsize=    1798kB time=00:00:12.06 bitrate=1220.7kbits/s speed=2.16e+03x
video:1796kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.130085%

[링크 : https://blog.naver.com/winsweet/222340783544]

[링크 : http://slydiman.me/eng/mmedia/recover_mp4.htm]

[링크 : https://restore.media/blog/how-to-fix-corrupted-mp4-files]

Posted by 구차니
프로그램 사용/wayland2022. 1. 24. 16:55

아놔.. rdp랑 동일하네.. wayland 자체가 현재 사용중인 세션은 어떻게든 끌어갈 수 없는 구조인가?

This is a VNC server for wlroots-based Wayland compositors (⛔ Gnome and KDE are not supported). It attaches to a running Wayland session, creates virtual input devices, and exposes a single display via the RFB protocol. The Wayland session may be a headless one, so it is also possible to run wayvnc without a physical display attached.

[링크 : https://github.com/any1/wayvnc]

 

As of 2020, there are several projects that use these methods to provide GUI access to remote computers. The compositor Weston provides an RDP backend. GNOME has a remote desktop server that supports VNC. WayVNC is a VNC server that works with compositors, like Sway, based on the wlroots library. Waypipe works with all Wayland compositors and offers almost-transparent application forwarding, like ssh -X.

[링크 : https://wayland.freedesktop.org/faq.html]

 

느리긴 해도 라즈베리 파이 3 에서도 돌아가긴 한다는 건가?

New features since v0.1.2:
  • The OpenGL ES 2.0 based renderer has now been replaced with a pixman based
    renderer. The new renderer is both simpler and performs better on devices
    with poor memory bandwidth such as the Raspberry Pi 3.

[링크 : https://github.com/any1/wayvnc/releases]

[링크 : https://github.com/any1/neatvnc#client-compatibility]

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

wayland-scanner  (0) 2022.02.16
wayland wl_fixed_t 변수  (0) 2022.02.07
weston client 메모리 누수  (0) 2022.01.17
wayland buffer  (0) 2022.01.13
wayland client example  (0) 2022.01.06
Posted by 구차니
하드웨어/Display 장비2022. 1. 24. 16:20

생각해보니 DP ALT 모드를 쓰는거라고 하는데

DP 에서 HDMI로는 그냥 물리적으로만 바꾸어주면 되는거 아니었나?

그러면 USB-C to HDMI는 별다른 하드웨어 없이 하드와이어로 이어진 건데 왜이렇게 비싸!? 생각했는데

혹시나 해서 검색해보니 으아..

MCU 하나에 DP to HDMI 칩이 들어가야 하니 항상 그렇게 길쭉하게 생겼었구나

그 긴 부분은 DP to HDMI 칩때문이구나.. 라는 생각을 하게 됨.

 

 

[링크 : https://www.chromium.org/chromium-os/hoho]

[링크 : https://m.blog.naver.com/benq4ever/221338789732]

 

이래서 HDMI(그래픽 출력) to DP(모니터) 으로는 사용하지 못하는 거군..

[링크 : https://www.kinet-ic.com/uploads/MCDP28x0-03a_Datasheet_Brief.pdf]

 

회사에서 이거 이번에 몇개 살때 만 원 단위였나? 기억이 안나네?

아무튼 오프매장에서 택배비랑 하면 비슷하게 파는걸 보면 그냥 사야하나...

[링크 : http://itempage3.auction.co.kr/DetailView.aspx?itemno=B787880399]

'하드웨어 > Display 장비' 카테고리의 다른 글

3d ready 빔 프로젝터 + 팟 플레이어  (0) 2023.08.15
빔 프로젝터 구매!  (0) 2023.08.14
e-paper 보드 발견  (0) 2022.01.21
ddi tcon  (0) 2019.06.24
강원전자 IC-314-AUD DVI KVM 4:1 스위치  (0) 2019.01.23
Posted by 구차니
embeded/ARM2022. 1. 23. 18:08

부동 소수점 +,-,*는 그래도 1사이클에 끝나지만 /는 10사이클 소요됨.

[링크 : https://developer.arm.com/documentation/ddi0409/f/instruction-timing/instruction-specific-scheduling/vfp-instruction-timing]

[링크 : https://developer.arm.com/documentation/ddi0409/g/Instruction-Timing/Instruction-specific-scheduling/Instruction-timing-tables]

 

VFP에 vector가 들어간다고 해도 NEON 수준의 병렬성은 제공하지 않음

The VFP architecture was intended to support execution of short "vector mode" instructions but these operated on each vector element sequentially and thus did not offer the performance of true single instruction, multiple data (SIMD) vector parallelism.

[링크 : https://en.wikipedia.org/wiki/ARM_architecture#VFP]

'embeded > ARM' 카테고리의 다른 글

ampere altra / 기가바이트 R272-P30 / 우분투  (0) 2023.02.03
arm asm rbit(비트 뒤집기)  (0) 2022.08.26
cortex-a9 neon  (0) 2021.06.21
EIM (external interface module)  (0) 2021.06.21
ARMv9 SVE2  (0) 2021.05.15
Posted by 구차니

아...놔..

'개소리 왈왈 > 직딩의 비애' 카테고리의 다른 글

대전 외근  (0) 2022.02.24
기절  (0) 2022.02.19
수면부족..  (0) 2022.01.12
SMA TO BNC 도착  (0) 2021.12.17
장난감 겟! (응?)  (0) 2021.11.24
Posted by 구차니