HackMD
    • Sharing Link copied
    • /edit
    • View mode
      • Edit mode
      • View mode
      • Book mode
      • Slide mode
      Edit mode View mode Book mode Slide mode
    • Note Permission
    • Read
      • Only me
      • Signed-in users
      • Everyone
      Only me Signed-in users Everyone
    • Write
      • Only me
      • Signed-in users
      • Everyone
      Only me Signed-in users Everyone
    • More (Comment, Invitee)
    • Publishing
    • Commenting Enable
      Disabled Forbidden Owners Signed-in users Everyone
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Invitee
    • No invitee
    • Options
    • Versions
    • Transfer ownership
    • Delete this note
    • Template
    • Save as template
    • Insert from template
    • Export
    • Google Drive Export to Google Drive
    • Gist
    • Import
    • Google Drive Import from Google Drive
    • Gist
    • Clipboard
    • Download
    • Markdown
    • HTML
    • Raw HTML
Menu Sharing Help
Menu
Options
Versions Transfer ownership Delete this note
Export
Google Drive Export to Google Drive Gist
Import
Google Drive Import from Google Drive Gist Clipboard
Download
Markdown HTML Raw HTML
Back
Sharing
Sharing Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
More (Comment, Invitee)
Publishing
More (Comment, Invitee)
Commenting Enable
Disabled Forbidden Owners Signed-in users Everyone
Permission
Owners
  • Forbidden
  • Owners
  • Signed-in users
  • Everyone
Invitee
No invitee
   owned this note    owned this note      
Published Linked with
Like BookmarkBookmarked
Subscribed
  • Any changes
    Be notified of any changes
  • Mention me
    Be notified of mention me
  • Unsubscribe
Subscribe
中天新聞分析 ========== 步驟 --- * 先下載 [中天52CH新聞 Youtube 頻道](https://www.youtube.com/channel/UCpu3bemTQwAU8PqM4kJdoEQ) 所有新聞 * [程式碼](https://github.com/ronnywang/twtvnews/blob/master/get-youtube-video.php) * [記錄](https://gist.github.com/076e184fee54b4a15c2c767a9e4c1da0) * 針對每隻影音的主標題區域逐秒比較計分 * 主標題區域:325x24+100+193 * 用 ImageMagick 的 compare ,AE 演算法,fuzz=10% 計算逐秒分數 * 逐秒切割計算 [程式碼](https://github.com/ronnywang/twtvnews/blob/master/youtube-crop.php) * 人工檢查每日標題是否有誤判情況 * 開啟 http://your-server/group-yt-crop.php?date=YYYYMMDD * 群組顯示 [程式碼](https://github.com/ronnywang/twtvnews/blob/master/group-yt-crop.php) * 寫入 [skip-crop.csv](https://github.com/ronnywang/twtvnews/blob/master/skip-crop.csv) * 產生每日主標題合併檔 * [產生程式](https://github.com/ronnywang/twtvnews/blob/master/get-youtube-crop-merge.php) * [成果](https://github.com/ronnywang/twtvnews-youtube-titles/tree/gh-pages/ctitv) * /ctitv/YYYYMMDD.png * 當天主標題合併成一張圖的大圖,一個標題大小是 325x24 * /ctitv/YYYYMMDD.csv * 各行圖片對應到的標題列表 * 透過每日影像跟前兩日的 Youtube 新聞主標題做比照對應 TVBS 主標分離 ----------- * ffmpeg 取得每秒畫面 (`ffmpeg -i 2019032112.ts -r 1 2019032112/%05d.jpg`) * 從 frame 分離 title * 找出一個 title 當作 reference 取得前方一塊的顏色 (0, 20, 3, 23) * Iterate 過所有 title, 連續 8 個畫面相同且為 title 的取出 (跟 title reference compare) 已知問題: * TVBS 有黃色底的快訊 * 沒有文字的狀況 (報導結尾, 某些畫面只有藍色底...etc) 改只參考連續超過 8 個畫面,不跟 title reference 相比 * 可以拿出黃色底的快訊 * 但是會有廣告 * <del>拿 tesseract 測有沒有文字</del> (無效) 改正: ![](https://i.imgur.com/o6nhp3l.jpg) * 擷取其他 static 部份當作 reference,能夠有效解決問題 * title 長度 mean 落在 25, std 17 (?), median 20 * 擷取超過 10 個畫面的 (能夠有效濾掉 speaker subtitle)

Import from clipboard

Advanced permission required

Your current role can only read. Ask the system administrator to acquire write and comment permission.

This team is disabled

Sorry, this team is disabled. You can't edit this note.

This note is locked

Sorry, only owner can edit this note.

Reach the limit

Sorry, you've reached the max length this note can be.
Please reduce the content or divide it to more notes, thank you!

Import from Gist

Import from Snippet

or

Export to Snippet

Are you sure?

Do you really want to delete this note?
All users will lost their connection.

Create a note from template

Create a note from template

Oops...
This template has been removed or transferred.


Upgrade

All
  • All
  • Team
No template.

Create a template


Upgrade

Delete template

Do you really want to delete this template?

This page need refresh

You have an incompatible client version.
Refresh to update.
New version available!
See releases notes here
Refresh to enjoy new features.
Your user state has changed.
Refresh to load new user state.

Sign in

Forgot password

or

Sign in via GitHub

New to HackMD? Sign up

Help

  • English
  • 中文
  • 日本語

Documents

Tutorials

Book Mode Tutorial

Slide Example

YAML Metadata

Resources

Releases

Blog

Policy

Terms

Privacy

Cheatsheet

Syntax Example Reference
# Header Header 基本排版
- Unordered List
  • Unordered List
1. Ordered List
  1. Ordered List
- [ ] Todo List
  • Todo List
> Blockquote
Blockquote
**Bold font** Bold font
*Italics font* Italics font
~~Strikethrough~~ Strikethrough
19^th^ 19th
H~2~O H2O
++Inserted text++ Inserted text
==Marked text== Marked text
[link text](https:// "title") Link
![image alt](https:// "title") Image
`Code` Code 在筆記中貼入程式碼
```javascript
var i = 0;
```
var i = 0;
:smile: :smile: Emoji list
{%youtube youtube_id %} Externals
$L^aT_eX$ LaTeX
:::info
This is a alert area.
:::

This is a alert area.

Versions

Versions

Upgrade now

Version named by    

More Less
  • Edit
  • Delete

Note content is identical to the latest version.
Compare with
    Choose a version
    No search result
    Version not found

Feedback

Submission failed, please try again

Thanks for your support.

On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

Please give us some advice and help us improve HackMD.

 

Thanks for your feedback

Remove version name

Do you want to remove this version name and description?

Transfer ownership

Transfer to
    Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.