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

  1. 2022.01.25 JWST L2 안착
  2. 2022.01.25 coral tpu delegate example
  3. 2022.01.24 mp4 복구 시도
  4. 2022.01.24 wayvnc
  5. 2022.01.24 USB-C to HDMI 컨버터 회로
  6. 2022.01.23 vfp, neon cycle
  7. 2022.01.23 주말인데 야근.
  8. 2022.01.22 빔 지름
  9. 2022.01.21 e-paper 보드 발견
  10. 2022.01.21 nvidia jetson nano 2gb / csi
개소리 왈왈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 구차니

음.. 이래저래 기능이 너무 빠진 저가버전..

 

남자의 로망이긴 한데

애들에게 쓰려는게 주 목적이니

키즈카페 처럼 먼가 만들어 볼까...?

'개소리 왈왈 > 육아관련 주저리' 카테고리의 다른 글

휴가 2일차  (0) 2022.01.30
휴가 1일차  (0) 2022.01.29
선풍기 수리  (0) 2022.01.16
토요일  (0) 2022.01.15
선풍기 기동 콘덴서  (6) 2022.01.09
Posted by 구차니
하드웨어/Display 장비2022. 1. 21. 17:38

EPD 패널 -------------

GDEP015OC1 / 200x200 / 1.54inch

[링크 : https://www.e-paper-display.com/products_detail/productId%3d305.html]

 

GDE0213B1 / 250x122 / 2.13 inch

[링크 : https://kp-electronicequipment.en.alibaba.com/product/60687088297-805091538/]

 

GDE021A1 / 172x72 / 2.04inch

[링크 : https://www.smart-prototyping.com/.../10600471%20e%20ink%20paper%20v2.0/GDE021A1.pdf]

[링크 : https://github.com/ewfuentes/stm32l0/blob/master/app/display/gde021a1.c]

 

GDE029A1 / 296x128 / 2.9inch

[링크 : https://www.futurashop.it/Allegato_PDF_ENG/4238-EPAPER029A1.pdf]

 

보드 ----------

GDE021/029

DESTM32-S2 라고 써있는걸 봐서는 GDEP015 는 못쓸것 같긴한데..

 

[링크 : https://www.e-paper-display.com/download_detail/downloadsId%3d467.html]

[링크 : https://www.e-paper-display.com/products_detail/productId=362.html]

[링크 : https://www.e-paper-display.com/products_list/pmcId%3d25.html]

 

 

+

Position 2.While shorting 3.0Ω resistor and RESE, this board is suitable for the following E-Paper displays:
1.1.54 inch E-Paper Display: GDEP015OC1, GDEH0154D27, GDEM0154E97LT and GDEW0154Z17
2.2.04 inch E-Paper Display: GDE021A1/ILE021A1
3.2.13 inch E-Paper Display: GDE0213B1/GDEH0213B1 and GDEM0213E28LT
4.2.9 inch E-Paper Display: GDE029A1/GDEH029A1,  GDEW029Z10 and GDEM029E27LT
5.7.5 inch E-Paper Display: GDEW075T8 and GDEW075Z09  

[링크 : https://www.e-paper-display.com/products_detail/productId=362.html]

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

빔 프로젝터 구매!  (0) 2023.08.14
USB-C to HDMI 컨버터 회로  (0) 2022.01.24
ddi tcon  (0) 2019.06.24
강원전자 IC-314-AUD DVI KVM 4:1 스위치  (0) 2019.01.23
nvidia shield over internet  (0) 2018.05.08
Posted by 구차니
embeded/jetson2022. 1. 21. 15:25

rpi cam v2.1 사용, rpi cam v1.3은 사용불가

$ nvgstcapture-1.0
Encoder null, cannot set bitrate!
Encoder Profile = High
Supported resolutions in case of ARGUS Camera
  (2) : 640x480
  (3) : 1280x720
  (4) : 1920x1080
  (5) : 2104x1560
  (6) : 2592x1944
  (7) : 2616x1472
  (8) : 3840x2160
  (9) : 3896x2192
  (10): 4208x3120
  (11): 5632x3168
  (12): 5632x4224

Runtime ARGUS Camera Commands:

  Help : 'h'
  Quit : 'q'
  Set Capture Mode:
      mo:<val>
          (1): image
          (2): video
  Get Capture Mode:
      gmo
  Set sensor orientation:
      so:<val>
          (0): none
          (1): Rotate counter-clockwise 90 degrees
          (2): Rotate 180 degrees
          (3): Rotate clockwise 90 degrees
  Get sensor orientation:
      gso
  Set sensor mode:
      smo:<val> e.g., smo:1
  Get sensor mode:
      gsmo
  Set Whitebalance Mode:
      wb:<val>
          (0): off
          (1): auto
          (2): incandescent
          (3): fluorescent
          (4): warm-fluorescent
          (5): daylight
          (6): cloudy-daylight
          (7): twilight
          (8): shade
          (9): manual
  Get Whitebalance Mode:
      gwb
  Set Saturation (0 to 2):
      st:<val> e.g., st:1.25
  Get Saturation:
      gst
  Set Exposure Compensation (-2 to 2):
      ec:<val> e.g., ec:-2
  Get Exposure Compensation:
      gec
  Set Auto Whitebalance Lock:
      awbl:<val> e.g., awbl:0
  Get Auto Whitebalance Lock:
      awbl
  Set Auto Exposure Lock:
      ael:<val> e.g., ael:0
  Get Auto Exposure Lock:
      gael
  Set TNR Mode:
      tnrm:<val> e.g., tnrm:1
          (0): OFF
          (1): FAST
          (2): HIGH QUALITY
  Get TNR Mode:
      gtnrm
  Set TNR Strength (-1 to 1):
      tnrs:<val> e.g., tnrs:0.5
  Get TNR Strength:
      gtnrs
  Set EE Mode:
      eem:<val> e.g., eem:1
          (0): OFF
          (1): FAST
          (2): HIGH QUALITY
  Get EE Mode:
      geem
  Set EE Strength (-1 to 1):
      ees:<val> e.g., ees:0.5
  Get EE Strength:
      gees
  Set Auto Exposure Anti-Banding (0 to 3):
      aeab:<val> e.g., aeab:2
          (0): OFF
          (1): MODE AUTO
          (2): MODE 50HZ
          (3): MODE 60HZ
  Get Auto Exposure Anti-Banding:
      gaeab
  Set Gain Range:
      gr:<val><space><val> e.g., gr:1 16
  Get Gain Range:
      ggr
  Set Exposure Time Range:
      etr:<val><space><val> e.g., etr:34000 35000
  Get Exposure Time Range:
      getr
  Set ISP Digital Gain Range:
      dgr:<val><space><val> e.g., dgr:2 152
  Get ISP Digital Gain Range:
      gdgr
  Capture: enter 'j' OR
           followed by a timer (e.g., jx5000, capture after 5 seconds) OR
           followed by multishot count (e.g., j:6, capture 6 images)
           timer/multihot values are optional, capture defaults to single shot with timer=0s
  Start Recording : enter '1'
  Stop Recording  : enter '0'
  Video snapshot  : enter '2' (While recording video)
  Get Preview Resolution:
      gpcr
  Get Image Capture Resolution:
      gicr
  Get Video Capture Resolution:
      gvcr


Runtime encoder configuration options:

  Set Encoding Bit-rate(in bytes):
      br:<val> e.g., br:4000000
  Get Encoding Bit-rate(in bytes):
      gbr
  Set Encoding Profile(only for H.264):
      ep:<val> e.g., ep:1
          (0): Baseline
          (1): Main
          (2): High
  Get Encoding Profile(only for H.264):
      gep
  Force IDR Frame on video Encoder(only for H.264):
      Enter 'f'


bitrate = 4000000
Encoder Profile = High
Encoder control-rate = 1
Encoder EnableTwopassCBR = 0
Opening in BLOCKING MODE
** Message: 15:18:30.462: <main:4670> iterating capture loop ....
NvMMLiteOpen : Block : BlockType = 4
===== NVMEDIA: NVENC =====
NvMMLiteBlockCreate : Block : BlockType = 4
GST_ARGUS: Creating output stream
CONSUMER: Waiting until producer is connected...
GST_ARGUS: Available Sensor modes :
GST_ARGUS: 3264 x 2464 FR = 21.000000 fps Duration = 47619048 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: 3264 x 1848 FR = 28.000001 fps Duration = 35714284 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: 1920 x 1080 FR = 29.999999 fps Duration = 33333334 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: 1640 x 1232 FR = 29.999999 fps Duration = 33333334 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: 1280 x 720 FR = 59.999999 fps Duration = 16666667 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: 1280 x 720 FR = 120.000005 fps Duration = 8333333 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: Running with following settings:
   Camera index = 0
   Camera mode  = 5
   Output Stream W = 1280 H = 720
   seconds to Run    = 0
   Frame Rate = 120.000005
GST_ARGUS: Setup Complete, Starting captures for 0 seconds
GST_ARGUS: Starting repeat capture requests.
CONSUMER: Producer has connected; continuing.
^C** Message: 15:18:32.652: <_intr_handler:4261> User Interrupted..

Terminating the camera pipeline ...
GST_ARGUS: Cleaning up
CONSUMER: Done Success
GST_ARGUS: Done Success
** Message: 15:18:33.098: <main:4680> Capture completed
** Message: 15:18:33.098: <main:4729> Camera application will now exit

[링크 : https://developer.nvidia.com/embedded/learn/tutorials/first-picture-csi-usb-camera]

 

카메라 호환성 목록

nano에서 사용가능한 CSI/MIPI로 제한할 경우 아래의 센서 목록이 나오는데, rpicam v1.3의 ov5647은 없다.

imx219가 rpicam v2.1에 채택된 녀석.

AR0135CS AR0144 AR0145 AR0234 AR0234CS AR0330 AR0521 AR1335 HDPYX 230-G IMX179 IMX183 IMX185 IMX219
IMX226 IMX250 IMX264 IMX265 IMX267 IMX273 IMX274 IMX287 IMX290 IMX296 IMX297 IMX304 IMX327 IMX334
IMX335 IMX377 IMX385 IMX390 IMX392 IMX412 IMX415 IMX462 IMX464 IMX477 IMX485 IMX540 IMX565 IMX577
MT9V024 OV2311 Python 480 RAA462113

[링크 : https://developer.nvidia.com/embedded/jetson-partner-supported-cameras?t1_supported-jetson-products=nano]

 

15핀

[링크 : https://developer.nvidia.com/embedded/learn/jetson-nano-2gb-devkit-user-guide#id-.JetsonNano2GBDeveloperKitUserGuidevbatuu_v1.0-Camera]

 

8 megapixels and supports CSI-2 bus interface

[링크 : https://kr.rs-online.com/web/p/raspberry-pi-cameras/9132664]

 

[링크 : https://www.raspberrypi.com/documentation/accessories/camera.html#hardware-specification]

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

jetson nano deepstream  (0) 2022.02.10
jetson nano developer board(구형) 부팅 문제  (0) 2022.02.09
jetson nano gpu 사용 상태 확인  (0) 2022.01.20
jetson nano 2g dev. kit 셋업  (0) 2022.01.20
jetson nano 켜보는데..  (0) 2022.01.19
Posted by 구차니