@pls-compile-owo/fisheye 0.8.1 → 0.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  本项目遵循 [Keep a Changelog](https://keepachangelog.com/zh-CN/1.1.0/) 规范与 [语义化版本](https://semver.org/lang/zh-CN/)。
4
4
 
5
+ ## [0.8.2] - 2026-11-14
6
+
7
+ ### Fixed
8
+
9
+ - **广告段检测在稀疏弹幕视频上误报**:弹幕密度低于 0.2 条/秒时密度统计不可靠(艺术短片《利马》127 条/856s 被误标 3 段「低互动段」),改为直接跳过检测(宁漏勿错)。
10
+ - golden fixture 补充人工真值标注(利马三段确认非广告)。
11
+
5
12
  ## [0.8.1] - 2026-11-14
6
13
 
7
14
  ### Added
package/lib/danmaku.mjs CHANGED
@@ -6,6 +6,10 @@ export const AD_SEGMENT_SIGNAL = /金主|恰饭|商单|硬广|软广|赞助|推
6
6
 
7
7
  export function detectAdSegments(danmaku, duration, bucketSec = 30, stepSec = 10) {
8
8
  if (!danmaku?.length || duration < 120) return []
9
+ // 弹幕太稀疏(如艺术短片 127 条 / 856s ≈ 0.15 条/s)时密度统计不可靠:
10
+ // 中位数本身极低,「低于中位数 45%」的段落只会是「观众不爱发弹幕的正常段落」。
11
+ // 低于 0.2 条/秒直接不判广告(宁漏勿错,低互动段标签也会误导)。
12
+ if (danmaku.length / duration < 0.2) return []
9
13
  const dens = []
10
14
  for (let s = 0; s + bucketSec <= duration; s += stepSec) {
11
15
  let n = 0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pls-compile-owo/fisheye",
3
- "version": "0.8.1",
3
+ "version": "0.8.2",
4
4
  "description": "Token-budget-aware video understanding for AI agents: official subtitles -> burned-in subtitle band -> danmaku highlights -> adaptive keyframe grids -> targeted refine.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -5,7 +5,7 @@
5
5
  "hasOfficialSubs": false,
6
6
  "expectedQuality": null,
7
7
  "subtitleLines": [],
8
- "expectedAdSegments": 3,
8
+ "expectedAdSegments": 0,
9
9
  "danmaku": [
10
10
  {
11
11
  "t": 79.295,
@@ -516,5 +516,6 @@
516
516
  "text": "好想把灯打开"
517
517
  }
518
518
  ],
519
- "danmakuCount": 127
519
+ "danmakuCount": 127,
520
+ "groundTruthNote": "2026-11-14 人工确认:04:50-05:50 / 08:50-10:40 / 11:40-13:00 三段均非广告(艺术短片,无赞助),修复稀疏弹幕误报后应检测为 0 段"
520
521
  }