<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Silvia Chen on Medium]]></title>
        <description><![CDATA[Stories by Silvia Chen on Medium]]></description>
        <link>https://medium.com/@silviachen_76118?source=rss-325b39b316b2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*i2JwrWj1RgusAd7x-F7c9A.jpeg</url>
            <title>Stories by Silvia Chen on Medium</title>
            <link>https://medium.com/@silviachen_76118?source=rss-325b39b316b2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 21:47:38 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@silviachen_76118/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[TAP plugin in Jenkins pipeline]]></title>
            <link>https://medium.com/@silviachen_76118/tap-plugin-in-jenkins-pipeline-d48060652faa?source=rss-325b39b316b2------2</link>
            <guid isPermaLink="false">https://medium.com/p/d48060652faa</guid>
            <category><![CDATA[tap]]></category>
            <category><![CDATA[jenkins]]></category>
            <category><![CDATA[jenkins-pipeline]]></category>
            <dc:creator><![CDATA[Silvia Chen]]></dc:creator>
            <pubDate>Fri, 08 May 2020 10:32:37 GMT</pubDate>
            <atom:updated>2020-05-08T10:39:00.163Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Add A step for Tap Result in groovy script</blockquote><pre>stage(“Publish TAP results”){<br>    step([$class: “TapPublisher”, testResults: “*.tap”])<br>}</pre><blockquote>Sidebar Link</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/260/1*lzg0lhxgCMX1_Y2wqNEdxw.png" /></figure><blockquote>TAP result #1</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/917/1*_wRvnziYUfI4jUsOwTXgmA.jpeg" /></figure><blockquote>TAP result #2</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/530/1*hWsx2HfcwNLmsT3xM3MNGQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d48060652faa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[去交錯(De-interlacing), 以Motion Adaptive De-interlacing為例]]></title>
            <link>https://medium.com/@silviachen_76118/%E5%8E%BB%E4%BA%A4%E9%8C%AF-de-interlacing-%E4%BB%A5motion-adaptive-de-interlacing%E7%82%BA%E4%BE%8B-4a0090a93737?source=rss-325b39b316b2------2</link>
            <guid isPermaLink="false">https://medium.com/p/4a0090a93737</guid>
            <category><![CDATA[firmware]]></category>
            <category><![CDATA[study]]></category>
            <category><![CDATA[algorithms]]></category>
            <category><![CDATA[patterns]]></category>
            <category><![CDATA[tv-reviews]]></category>
            <dc:creator><![CDATA[Silvia Chen]]></dc:creator>
            <pubDate>Wed, 15 Aug 2018 06:53:35 GMT</pubDate>
            <atom:updated>2018-08-15T07:37:26.706Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><strong><em>去交錯(de-interlacing)的定義:</em></strong></blockquote><pre>一個將交錯式(interlace)影像轉為漸進式(progressive)影像輸出的程序。</pre><p>Interlace的影像源可以是一般的攝影機, DVD或者1080i 的藍光碟(blu-ray disc),在這裡就不解釋interlace與progressive的定義了, 而因為interlace(2*n)影像的資訊含量為progressive(2n)的一半, 硬體速度與buffer大小就相較可以降低須求(如陰極射線管顯示器(Cathode Ray Tube, CRT)) 。</p><p>odd field+even field成為 one frame</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/0*9FdB8yOcYz1HORTT" /><figcaption><a href="https://static1.squarespace.com/static/54d696e5e4b05ca7b54cff5c/t/586d7608579fb3e289c24ed2/1483568678113/interlacing+example?format=750w">2個field 結合為1個frame</a></figcaption></figure><blockquote><strong><em>去交錯(de-interlacing)的原因:</em></strong></blockquote><pre>現今的顯示器(monitor)設備已有足夠的能力即時處理漸進式(progressive)影像, 雖然現在很多影音公司會先在販售前將錄好的interlace影像轉為progressive,但對於單純interlace影像, 這些monitor直接撥放的話會有閃爍(flicker)的現象, 因此必須擁有de-interlacing的能力才行。</pre><p>簡單來說, 你將會看到影像一直在發抖…哈</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/695/1*U-KGmWyLjQeU49psaQWBww.png" /><figcaption>(訊源HDMI 1080i) 左: BEFORE 右: AFTER</figcaption></figure><p><strong>但是, 永遠不能非常完美的 de-interlacing…..</strong></p><p>舉例來說, 一台每秒50場(field per sec)的攝影機, 第一行跟第三行在第1/50秒被拍攝, 就是奇數在1/50, 偶數在2/50秒, 他是有時間差距的(2/50–1/50)兩field被合為frame時, 如果物體是動態的, 你將會看到有鋸齒的效果。</p><blockquote><strong><em>去交錯(de-interlacing)的時機:</em></strong></blockquote><ul><li>NTSC, PAL, SECAM 類比廣播系統</li><li>HDMI (480i/576i/1080i), DTV(480i/576i/480i/1080i), YPbPr (480i/576i/480i/1080i), etc. 就是那些interlace 訊號源</li></ul><p>De-interlacing 的演算法很多, 這裡以MADi為例:</p><blockquote><strong><em>MADi (</em></strong> <strong><em>Motion Adaptive De-interlacing)</em></strong></blockquote><pre>結合<strong>Intra-field</strong> 與 <strong>Inter-field </strong>的優點來實現的演算法，利用 field 之間的像素差來判斷動態區域與靜態區域，動態區域用 Intra-field de-interlacing，靜態區域使用 inter-field de-interlacing。</pre><p>介紹一下Intra-field de-interlacing 跟 Inter-field de-interlacing的定義:</p><blockquote><strong><em>Intra-field de-interlacing</em></strong></blockquote><pre>單一場去交錯, 適用於動態畫面, 基於spatial filtering (2D),將一個field 放大成一個frame大小, 雖然硬體的成本因此降低, 但用在靜態畫面看起來鬆散, 如果動態影像有橫向的細線, 畫面看起來就會閃爍。</pre><blockquote><strong>那為什麼放大會閃爍(flickering)?</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/885/1*s7kgL4SmdYL-c180C0svdQ.png" /><figcaption><a href="https://www.slideshare.net/ramesh130/de-interlacing-techniques-wid-ref">Intra-field deinterlacing</a> (Bob)</figcaption></figure><p>左圖為intra-field的其中一種演算法, 叫做Bob, 假設現在是even field(紅色部分), 而黑色部分的空缺則由上一條複製下來，而右圖假設有在odd field有一條黑色細線, 但由於我們是用even field作複製的動作, 導致odd field才有的黑色細線不見了, 因此合成一個frame時會看到閃爍的現象。</p><blockquote><strong><em>Inter-field de-interlacing</em></strong></blockquote><pre>場間去交錯, 適用於靜態畫面, 基於temporal filtering (1D), 將連續兩個field結合為一個frame, 在垂直方向保留全部分辨率, 用在動態畫面則可以能有鬼影或鋸齒。</pre><p>然後再來張MADi 的示意圖:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/760/1*MfiqFYgEqG-iNivmSJ0cDw.png" /><figcaption>MADi 示意圖</figcaption></figure><p>MADi 翻成中文就是動態自適應去交錯, 藉由偵測影像的靜態與動態, 希望能夠做到高分辨率與無閃爍, 因此在Motion Detect 的步驟必須精確(很重要的意思), 否則會產生較多的artifacts。圖中的3DDi的3D參考了空間(2D, intra-field)+時間(1D, inter-field)保留了最多資訊, 代價是需要額外的記憶體空間。</p><p>Motion Detect會透過觀察pixel的值在兩個以上的field是如何的motion, 藉以分配利用在inter-field或者intra-field, 通常會設個門閥值(threshold), 如果pixel 大於threshold則判斷使用intra-field de-interlacing。</p><pre>   F_i (x ⃗,n)=αF_st (x ⃗,n)+(1-α) F_mot (x ⃗,n)</pre><p>F_st是靜態影像的內差結果, F_mot是動態影像的內差結果, α是權重。</p><p>關於de-interlacing還有其他的東西需要注意, 比如Erode(侵蝕)/Dilate(擴張), 是屬於Morphology形態學的範疇, 在影像二值化後為了凸顯影像的feature, 如連通區域與邊界,去做消除雜訊的動作。</p><p>或者是利用邊界導向(Edge-Oriented)的去交錯方式, 這是屬於2D的去交錯, 主要是為了解決intra-field de-interlacing的問題 (jagged effect in the oblique edge)。</p><p>以及在電視系統上如果要撥放電影也必須去交錯, 那又是另外一回事了。(Hint: Pull-down) 😛</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4a0090a93737" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Setup VIM with Python in Ubuntu 18.04]]></title>
            <link>https://medium.com/@silviachen_76118/setup-vim-with-python-in-ubuntu-18-04-4d85cc07d679?source=rss-325b39b316b2------2</link>
            <guid isPermaLink="false">https://medium.com/p/4d85cc07d679</guid>
            <category><![CDATA[vim]]></category>
            <category><![CDATA[vimrc]]></category>
            <category><![CDATA[ubuntu]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Silvia Chen]]></dc:creator>
            <pubDate>Wed, 16 May 2018 10:21:44 GMT</pubDate>
            <atom:updated>2018-06-20T14:10:27.040Z</atom:updated>
            <content:encoded><![CDATA[<p>I referred some blogger articles to setup my vim for python, and this is just a note recording my steps:</p><h3>Prepare</h3><h4>Install vim</h4><pre><em># apt-get install vim-scripts<br># apt-get install vim-addon-manager</em></pre><h4>Install ctags</h4><pre># apt-get install exuberant-ctags</pre><h4>Install taglist</h4><pre><em># vim-addons install taglist</em></pre><h4>Install pydiction<strong> (in /usr/share/vim):</strong></h4><blockquote>Download pydiction from this page:<a href="https://www.vim.org/scripts/script.php?script_id=850">https://www.vim.org/scripts/script.php?script_id=850</a></blockquote><pre><em># wget </em><a href="https://www.vim.org/scripts/download_script.php?src_id=21842"><em>https://www.vim.org/scripts/download_script.php?src_id=21842</em></a><em><br># unzip download_script.php\?src_id\=21842</em></pre><p>then you will get &#39;pydiction&#39; directory</p><h4>Configure vimrc (1/2)</h4><blockquote>The &#39;~/.vimrc&#39; is a new file, not a default, you can refer other cofiguratiion to customize your vim:</blockquote><pre># cp /usr/share/vim/vim80/vimrc_example.vim ~/.vimrc<br># vim ~/.vimrc</pre><p>I typed this following lines:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/049c571b4932c41b77d070eb0551e9ee/href">https://medium.com/media/049c571b4932c41b77d070eb0551e9ee/href</a></iframe><h3>Python IDE</h3><h4>pydiction</h4><blockquote>&#39;~/.vim/after/ftplugin &#39;and &#39;~/.vim/tools/pydiction/&#39; are not default</blockquote><pre>#cp /usr/share/vim/pydiction/after/ftplugin/python_pydiction.vim ~/.vim/after/ftplugin</pre><pre>#cp /usr/share/vim/pydiction/complete-dict ~/.vim/tools/pydiction/complete-dict</pre><h4>Configure ~/.vimrc (2/2)</h4><blockquote>The ‘~/.vimrc’ is a new file, not a default, you can refer other cofiguratiion to customize your vim:</blockquote><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/049c571b4932c41b77d070eb0551e9ee/href">https://medium.com/media/049c571b4932c41b77d070eb0551e9ee/href</a></iframe><h4>Done</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h3CLI0pp5X097VrA5Scx3Q.png" /><figcaption>layout</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4d85cc07d679" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I fixed Fedora 27 console mode blinking]]></title>
            <link>https://medium.com/@silviachen_76118/solved-fedora-27-console-mode-was-blinking-c5fc753272a?source=rss-325b39b316b2------2</link>
            <guid isPermaLink="false">https://medium.com/p/c5fc753272a</guid>
            <category><![CDATA[terminal]]></category>
            <category><![CDATA[fedora]]></category>
            <category><![CDATA[linux]]></category>
            <dc:creator><![CDATA[Silvia Chen]]></dc:creator>
            <pubDate>Tue, 23 Jan 2018 13:22:02 GMT</pubDate>
            <atom:updated>2018-01-24T12:30:05.678Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>BG</strong>: Stuck on booting. CANNOT switch to console with ‘ctrl+alt+f2’</p><p><strong>Reason: </strong>Upgrade Fedora version</p><p><strong>Solution step:</strong></p><ol><li>@grub menu, enter ‘e’ to edit boot command</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*8-TM-f4LqAoivgfXrn_Bpw.png" /><figcaption><a href="https://www.if-not-true-then-false.com/2015/fedora-23-install-guide/">Fedora 23 grub menu</a></figcaption></figure><p>2. Find the line at beginning ‘linux16/vmlinuz-4.13….’, then type [space] and ‘3’ at the line end, such as ‘…….UTF-8 3’ so that Fedora will know you want to enter console mode</p><p>3. Press ‘ctrl+x’ to login</p><p>4. <em>$sudo vim /etc/gdm/custom.conf</em></p><p>5. @custom.conf, find line ‘#WaylandEnable = false’, delete ‘#’</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c5fc753272a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[20171220]]></title>
            <link>https://medium.com/@silviachen_76118/20171220-d7b1e948704a?source=rss-325b39b316b2------2</link>
            <guid isPermaLink="false">https://medium.com/p/d7b1e948704a</guid>
            <category><![CDATA[chinese]]></category>
            <category><![CDATA[taipei]]></category>
            <category><![CDATA[essay]]></category>
            <dc:creator><![CDATA[Silvia Chen]]></dc:creator>
            <pubDate>Wed, 20 Dec 2017 15:26:59 GMT</pubDate>
            <atom:updated>2018-01-24T00:27:33.565Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wMHzW9X7-aBS_vURymFAgQ.jpeg" /><figcaption>Pic: NTUT@Taipei</figcaption></figure><p>生於白露，其性烈，其色柔，其味薄。</p><p>蕪虛的地方仍舊跟著大雪冬至汲汲活著，對於芊蕙來說就算這樣好了也比不上老家那個地方。芊蕙曾經說過到這裡之前也沒有太多的思考，菸捲幽幽稀吐出了草霧，草霧纏著思緒．乘乘兮若無所歸。</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d7b1e948704a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[USB Protocol Layer (協定層)]]></title>
            <link>https://medium.com/@silviachen_76118/usb-protocol-layer-%E5%8D%94%E5%AE%9A%E5%B1%A4-b876aa3f8baa?source=rss-325b39b316b2------2</link>
            <guid isPermaLink="false">https://medium.com/p/b876aa3f8baa</guid>
            <category><![CDATA[usb]]></category>
            <category><![CDATA[protocol-tokens]]></category>
            <dc:creator><![CDATA[Silvia Chen]]></dc:creator>
            <pubDate>Wed, 06 Dec 2017 14:06:24 GMT</pubDate>
            <atom:updated>2017-12-06T14:06:24.303Z</atom:updated>
            <content:encoded><![CDATA[<h4>USB資料傳輸 (Transaction)</h4><p>通常包含三個packet: Token packet, Data packet, Status packet (Handshake), 依據傳輸的型態決定要包含一個兩個三個packet。</p><p>ps: packet是usb傳輸的最小單位</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1lQjyrlN-6aV0b_k2Hrp1A.png" /><figcaption>USB Transaction</figcaption></figure><p>資料傳輸時，由Token packet中決定要從Host往Device，或從Device往Host。Handshake可以判斷此次傳輸是否成功(ACK, NAK, STALL)。</p><p>以在USB 3.0為例，協定層 (Protocol layer)將來自上層的功能層 (Functional layer)的請求(request)轉換成資料傳輸(Transaction)，並管理host與device端對端的資料流程，如：</p><blockquote>端對端資料傳輸封包的可靠性、有效率地利用頻寬、有效率地電源管理</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/980/0*jlnWPmyYCNxKaxq9.jpg" /><figcaption>pic: <a href="http://www.techdesignforums.com/practice/files/2013/09/USB-University-diag-4-lrg.jpg">http://www.techdesignforums.com/practice/files/2013/09/USB-University-diag-4-lrg.jpg</a></figcaption></figure><h4>Reference</h4><ol><li><a href="http://wiki.csie.ncku.edu.tw/embedded/USB">http://wiki.csie.ncku.edu.tw/embedded/USB</a>#實體層</li><li><a href="http://www.techdesignforums.com/practice/technique/usb-3-0-protocol-layer-1">http://www.techdesignforums.com/practice/technique/usb-3-0-protocol-layer-1</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b876aa3f8baa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[什麼會推進所以趕快說]]></title>
            <link>https://medium.com/@silviachen_76118/%E4%BB%80%E9%BA%BC%E6%9C%83%E6%8E%A8%E9%80%B2%E6%89%80%E4%BB%A5%E8%B6%95%E5%BF%AB%E8%AA%AA-4a22804aa380?source=rss-325b39b316b2------2</link>
            <guid isPermaLink="false">https://medium.com/p/4a22804aa380</guid>
            <category><![CDATA[essay]]></category>
            <category><![CDATA[taiwan]]></category>
            <dc:creator><![CDATA[Silvia Chen]]></dc:creator>
            <pubDate>Wed, 06 Dec 2017 11:24:16 GMT</pubDate>
            <atom:updated>2017-12-06T11:31:36.844Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/240/0*6Kn9u5MIk6cGjyz-.jpg" /><figcaption>Pic: NTUT@Taipei</figcaption></figure><p>因為巴士要往前開，又或是我要往前走,，你就此打住吧。要掉頭是可以的，但這就違反他愛的一致性了吧，「直線，歸一，傲骨錚錚吧你。」他曾經說你這樣靠氣味認人實在不靠譜，可保持氣味的生命不也是他所硬性堅持的嗎？果然擔心著我認不著路，嘴上嚷嚷太庸俗了我們是走清新派的，手上拿著幾罐小香膏澱称著。</p><p>我回來了嗎，或者我根本一直都在這裡。</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4a22804aa380" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>