2020年6月2日 星期二

raspberry pi的cross compile

主要資料來源:
https://www.raspberrypi.org/documentation/linux/kernel/building.md

https://www.raspberrypi.com.tw/tag/cross-compiler/


後來在整理的時候, 發現兩邊的環境變數有點不同
一個是: ~/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/
另一個: ~/tools/arm-bcm2708/arm-linux-gnueabihf/bin/

裡面的東西看起來好像都一樣(!?

然後就寫個hello.c來測試一下

結果發現兩邊的arm-linux-gnueabihf-gcc編譯出來的檔案, 都可以在PI上面執行


那就視為是相同的好了(!?) XD

2020年5月29日 星期五

翻譯 XD

先期技轉金 的英文: early-stage technology transfer funds

資料來源: https://www.cc.ncku.edu.tw/rule/content.php?sn=567

作業上傳區 by Google Drive

https://www.playpcesor.com/2015/10/google-drive-upload-files.html
https://www.labnol.org/internet/receive-files-in-google-drive/19697/

差點忘了怎麼弄, 幸好有找到 XD


2020年5月28日 星期四

DNS-over-TLS

紀錄一下特殊用途(!?)

這邊整理很多
https://dnsprivacy.org/wiki/display/DP/DNS+Privacy+Test+Servers
https://github.com/curl/curl/wiki/DNS-over-HTTPS


感覺可以擋廣告的:
dns.adguard.com
dot-jp.blahdns.com
dns.oszx.co
dns.flatuslifir.is
dot.tiar.app
doh.li

主機在歐美的(?
dot.centraleu.pi-dns.com
dot.northeu.pi-dns.com
dot.westus.pi-dns.com
dot.eastus.pi-dns.com
dns.aaflalo.me:853

2020年5月23日 星期六

sony XZ1 關閉內建的服務

這個指令可以查詢已關閉的app:
adb shell pm list packages -d


最近無聊又關了一些:

adb shell pm disable-user --user 0 com.sonymobile.xperialounge.services
adb shell pm disable-user --user 0 com.sonymobile.entrance
adb shell pm disable-user --user 0 com.sonymobile.coverapp2
adb shell pm disable-user --user 0 com.sonyericsson.updatecenter
adb shell pm disable-user --user 0 com.sonymobile.retaildemo
adb shell pm disable-user --user 0 com.qualcomm.wfd.service
adb shell pm disable-user --user 0 com.sonymobile.dualshockmanager
adb shell pm disable-user --user 0 com.touchtype.swiftkey
adb shell pm disable-user --user 0 com.swiftkey.swiftkeyconfigurator
adb shell pm disable-user --user 0 com.sonymobile.dualshockmanager

目前已經關閉的東西:
package:com.touchtype.swiftkey
package:com.sonymobile.coverapp2
package:com.sonymobile.getset.priv
package:com.sonymobile.deqp
package:com.google.android.marvin.talkback
package:com.google.android.apps.work.oobconfig
package:com.qualcomm.wfd.service
package:com.sonymobile.entrance
package:com.s.antivirus
package:com.sonymobile.susrescheck
package:com.google.android.webview
package:com.android.facelock
package:com.sonyericsson.updatecenter
package:com.sonyericsson.xhs
package:com.swiftkey.swiftkeyconfigurator
package:com.sonymobile.moviecreator.rmm
package:com.sonymobile.xperialounge.services
package:com.sonymobile.email
package:com.sonymobile.pobox
package:com.sonymobile.retaildemo
package:com.sonymobile.pip
package:com.sonymobile.usm
package:com.sonyericsson.startupflagservice
package:com.sonymobile.getset
package:com.sonymobile.dualshockmanager
package:com.sony.tvsideview.videoph

2020年5月7日 星期四

安裝llvmlite

在研究安裝librosa, 然後 pip3 install librosa一值出錯

後來發現是llvmlite卡住了....

[error]
Failed building wheel for llvmlite

    ----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-f6srimn0/llvmlite/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-jf40ng7f/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-install-f6srimn0/llvmlite/


[sol]
後來在這邊看到
https://raspberrypi.stackexchange.com/questions/111697/unable-to-pip-install-librosa-in-raspberry-pi-3-model-b-raspbian-stretch

先去裝llvm:
sudo apt install llvm

然後查路徑
which llvm-config

在pip3前面加上環境變數
LLVM_CONFIG=/usr/bin/llvm-config pip3 install llvmlite



然後就可以了!!!!

2020年4月21日 星期二

MFCC的討論

MFCC python plot
https://blog.csdn.net/m0_37052320/article/details/80743906

How to plot MFCC in Python?
https://stackoverflow.com/questions/43506198/how-to-plot-mfcc-in-python

Speech Processing for Machine Learning: Filter banks, Mel-Frequency Cepstral Coefficients (MFCCs) and What's In-Between
https://haythamfayek.com/2016/04/21/speech-processing-for-machine-learning.html#fnref:1


人臉識別的討論

【人臉辨識】使用5 Facial Landmarks進行臉孔校正
https://makerpro.cc/2019/08/face-alignment-through-5-facial-landmarks/

[ Dlib ] 利用 Dlib進行臉部捕捉

Raspberry Pi: Facial landmarks + drowsiness detection with OpenCV and dlib

Trained model files for dlib example programs.

python dlib学习(七):人脸特征点对齐
https://blog.csdn.net/hongbin_xu/article/details/78511292


lepton 熱像儀 討論串

Errrrrrr.... (這個詞最近很紅? XD)


最近用熱像儀, 發現很容易讀不到畫面 (還是板子壞了? QQ)

把目前找到的分頁紀錄一下

Help! Setup Failed - Flir Lepton + Breakout v1.4 + RPI3 Model B
https://groups.google.com/forum/#!searchin/flir-lepton/red$20square|sort:date/flir-lepton/hFN4Rd93XM0/kD5OdFDaBwAJ

Raspberrypi_Video Red Square Forever...
https://groups.google.com/forum/#!searchin/flir-lepton/red$20square|sort:date/flir-lepton/-oGTU1Lk-NA/pGKlCD_TCAAJ

Flir Lepton中有關「red square」的結果
https://groups.google.com/forum/#!searchin/flir-lepton/red$20square%7Csort:date

2020年4月15日 星期三

RaspPI 安裝 dlib

Err: Failed building wheel for dlib
Sol: pip install --upgrade pip

Err: CMake must be installed to build the following extensions: dlib
Sol: sudo apt-get install cmake

在桌面環境安裝會超久 (12小時還沒好...)

使用終端機模式會快很多 (3小時內?)

sudo init 3   # 這個指令會關閉多人/桌面模式
pip install dlib

sudo init 5  # 恢復桌面模式

----

補充

pip install dlib -> 這個是python2用的版本, 因為wheel上沒有已編譯好的whl檔, 所以會變成抓source code下來安裝

如果用python3的話, 就有現成的whl可以用, 速度會超快 XDDDD