文章

顯示從 6月, 2012 起發佈的文章

喇叭維修

圖片
うるさい!うるさい!うるさい! 家中的喇叭調節聲音和bass出現了一點問題 聲音和bass時大時小, 有時只有一邊喇叭有聲音 今天終於到了忍耐力的極限! 先把外殼拆開, 跟預想一樣, 是兩個一般的VR, 一個控制聲音的大小, 另一個控制bass 一般的variable resistor的工作原理是這樣 紅色 : resistor track      以一定長度一定阻值作為resistor 藍色 : connection A (Ra)      完成complete circuit 的point  數值可以用比例算出 綠色 : connection B (Rb)      完成complete circuit 的point 數值是 R-Ra  黑色 : wiper      以非固定的方式連接resistor track. 以在resistor track不同的位置 令得出的resistance改變 也是今次做成故障的地方 故障的原因應該是接觸不良  image from : http://www.tumblr.com/tagged/variable-resistor 左邊的是喇叭的VR, 因為是雙聲道, 所以有5點, 但結構還是一樣 為免歷史重演, 打算把兩個points 焊接, 一了百了. 要把兩個points 焊起來, 先要知道 它的連接方法 要測試很簡單, 開啟喇叭, 用電線連接兩點(W-A, W-B), 聽到有聲音就可以 這樣 電路就會長期在最低電阻(最大聲)的狀態 焊起來  一切問題都解決了 ヾ(〃^∇^)ノ 完成圖 

[OpenCV] Connect to IP Camera by RTSP steaming | 運用RTSP串流連接網絡攝像機(IP Camera)

圖片
USB WebCam is supported by openCV library. OpenCV can connected to webcam by call function cvCaptureFromCAM(). Beacuse OpenCV do not have internet steaming function, if we want to make a connection between IP Camera and OpenCV, we needed to do a bit more.  The IP Camera model that I bought is IPUX 1330. It have video streaming output thought RTSP. OpenCV可以運用cvCaptureFromCAM()去連接USB網絡攝影機(WebCam)。但OpenCV不支援網絡串流,我們再做多一點以連接網絡攝像機(IP Camera)。 這裡用的網絡攝像機型號是IPUX 1330, 它可以用RTSP串流視訊。 There is a C++ library called The mobile robot programming toolkit which extend the area of openCV to the internet. I will not spend time on how to install this library(It has a detail manual .) and other powerful function in this library. To connect IP camera by rstp, first we needed to enable RTSP function and find out the rtsp link. The link of my IPUX 1330 is rtsp://192.168.0.30/mpeg4. (I suggested you to fix the IP of the camera). We can proof the connection of rtsp streaming is success by VLC