jetson
1c26f9f95b
feat(zones): use native 1080p zones, sync FCP main, and auto-sync default preset
2026-11-17 12:26:30 +07:00
jetson
08a0e54065
feat(ui): paste/import zone JSON in the calibrator + surface editor in nav
2026-11-12 16:19:16 +07:00
jetson
c34ac85643
feat(ui): interactive zone editor over the analysis frame
2026-11-12 13:52:01 +07:00
jetson
7a14672b71
ui: improve contrast for convert button and model class badges
2026-11-04 10:56:13 +07:00
jetson
1b032edfd3
feat: upload models and convert to .engine from web UI
2026-11-04 10:25:27 +07:00
jetson
b2c0ce0011
docs: label the batch count as closed batches and record the FCP cross-check
...
The status page showed "Batches: 0" for a clip with an open batch, which
reads like "no batch was counted". The number is the count of FINISHED
batches, so say so.
Plan: record the FCP cross-check that was run on this box (a 60 s excerpt,
model mode C: FCP 6/0/6 vs the recounter 6/0/6 - the same counts) with the
exact commands.
2026-10-28 10:44:28 +07:00
jetson
89a265c54c
feat: auto-resize uploads to 720p, 720p default output
...
- src/preview.py: added resize_video_to_max_height() using ffmpeg
(tries nvenc/v4l2m2m then libx264, atomic overwrite, only if >720p)
- app.py upload: transcode to 720p immediately after save
- app.py upload_reuse: probe first, only transcode if height > 720p
- templates/index.html: 720p output checkbox checked by default
- zones already scale correctly via build_static_roi (reference 1920x1080 -> 720p)
- 177 tests pass
2026-10-15 09:48:23 +07:00
jetson
ce604b0574
feat: platform detection parity + download/processing progress bars
...
Alignment with karung_counter_semarang (recount consistency):
- box_conf 0.35, truck_conf 0.45, suppress_sack_box 0.4
- detector/tracker run at min(sack_conf, box_conf) so 0.35 boxes survive
inference; _apply_class_confs gates box/box_conf, sack/sack_conf
- _apply_min_area guardrail: sack/box 1500, truck 5000 px2
- 168 tests pass (+5)
2026-10-13 11:30:04 +07:00
jetson
f2b564446f
feat: fixed ROI zone mode as default selection
...
- index.html: checked moves from dynamic to fixed radio; preset config
visible on load (was only added on change event)
- app.js: when no zone presets exist, fall back to dynamic radio + hide
preset config (server already falls back to dynamic)
2026-09-29 16:54:18 +07:00
jetson
81e6ae6624
feat: live box counts + separate sack/box nets on status page
...
- live_stats_callback sends box_loading/box_unloading (both pipelines)
- Job live_box_* fields, API JSON exposes them
- status page: 6 live tiles (Sack In/Out/Net, Box In/Out/Net), Box Net
added to result cards (Jinja + JS), flex-wrap for 6-tile layout
- 155 tests pass (+2)
2026-09-29 16:37:33 +07:00
jetson
07289a419a
perf: throttle tracker to every 2nd frame, sup interval 10, 720p output option
...
- detect_interval=2 on both pipelines; stabilizer 10-frame hold bridges
skipped frames (GPU inference cut ~half during active batch)
- sup_det_interval 5 -> 10 (still <= stabilizer hold / synthetic max_age)
- preview_every_n default 2 -> 5
- AnnotatedVideoWriter: codec auto-chain gstreamer_nvenc -> avc1 -> mp4v,
max_height downscale (even dims, INTER_AREA); backend logged
- output_max_height plumbed Job -> web checkbox (720p) -> CLI --output-height
- README: 720p option, CLI flag
- 153 tests pass (+13)
2026-09-29 15:58:55 +07:00
jetson
4bd9de58e1
feat: freeze ROI mode, deadband+sticky jitter fix, explicit fixed/frozen ROI flags
...
- zone_mode=freeze: TruckROITracker locks box after 3 consecutive truck
detections; geometry stays fixed while presence stays live (truck
departure -> confidence 0 -> batch transitions keep working)
- jitter: 10px deadband skips EMA on tiny bbox noise; sticky main-truck
pick (IoU>=0.3) prevents ROI jumps between parked trucks
- TruckROI.fixed/frozen flags replace dashboard confidence>=1.0 heuristic
- gate truck_centroid on truck_present in both pipelines
- +22 tests (test_truck_roi.py, test_freeze_plumbing.py); 127 pass
2026-09-28 14:36:21 +07:00
jetson
1dbfecaac3
fix: consistent Sack In/Out labels across live and results cards
2026-09-28 13:31:47 +07:00
jetson
7932119e17
feat: propagate sack vs box counts to results and UI
2026-09-28 09:36:27 +07:00
jetson
f0ea95dd26
feat: web UI zone mode selector with preset dropdown
2026-09-22 13:08:28 +07:00
jetson
fc20a521ee
feat: merged detection output + parallel model execution
...
- Multiple models run simultaneously on each frame via ThreadPoolExecutor
- Detections merged with IoU deduplication (same class, high overlap → keep highest conf)
- Single merged_annotated.mp4 output (not per-model videos)
- Single model still uses existing run_pipeline for backward compat
- Active jobs banner on upload page (polls every 5s)
- GPU warning when selecting 3+ models
- 62/62 tests pass
2026-09-22 11:10:41 +07:00
jetson
163280078f
fix: toggle preview display bug, add job deletion, optimize pipeline
...
- Fix: toggle ON now resets img display to block (was stuck on 'waiting')
- Toggle OFF sends API call to stop preview file writes
- Delete button on status page + jobs page cards
- DELETE /api/jobs/<id> endpoint removes job + output files
- PUT /api/jobs/<id>/preview endpoint toggles preview_enabled
- Pipeline skips resize/encode/write when preview_enabled=False
- Reduced preview defaults: 480px max, JPEG quality 60
- 62/62 tests pass
2026-09-22 10:49:06 +07:00
jetson
09a8829575
feat: live preview toggle, FPS indicator, live counting by object
...
- Toggle ON/OFF switch to disable preview (faster processing)
- FPS badge showing rolling average processing speed
- Live Loading/Unloading/Net counts updated in real-time
- Pipeline callback pushes stats every 10 frames
- Frontend polls and updates display every 2s
- 62/62 tests pass
2026-09-22 10:36:11 +07:00
jetson
a5566f3b99
feat: switch live preview from WebSocket to MJPEG streaming
...
- Pipeline writes JPEG to /tmp/feedmill_preview_{job_id}.jpg (atomic)
- Flask serves MJPEG stream at /api/preview/{job_id}
- Frontend uses native <img src> MJPEG — zero JS needed
- Removed flask-socketio, eventlet, socket.io CDN dependencies
- 33% less bandwidth per frame, native browser decode
- Same proven approach as original karung-counting project
2026-09-22 10:09:22 +07:00
jetson
f9e411f407
feat: 15+ FPS live preview via WebSocket push
...
- flask-socketio + threading mode (no eventlet monkey-patching)
- preview_queue in pipeline: downscale to 640p, JPEG encode, bounded queue
- encoder thread per job reads queue → SocketIO broadcast to room
- Frontend: SocketIO client replaces HTTP polling, handles preview_frame event
- Configurable: preview_every_n, preview_max_dim, preview_jpeg_quality
- 62/62 tests pass
2026-09-21 11:07:42 +07:00
jetson
93daa68668
fix: add explicit GPU memory cleanup between models to prevent OOM
2026-09-21 10:19:29 +07:00
jetson
6783ff3970
feat: add abort button for job cancellation
2026-09-21 09:40:57 +07:00
jetson
f779f05190
feat: add video reuse — re-analyze previous uploads without re-uploading
2026-09-21 09:35:29 +07:00
jetson
dbd79ed442
feat: update Flask routes to use grouped models
2026-09-18 11:46:22 +07:00
jetson
1bc5e0634c
chore: remove duplicate v4-best (1).pt model file
2026-09-18 10:39:59 +07:00
jetson
47ffede485
fix(ui): flat progress bar on status page, format created-time
2026-09-18 08:11:53 +07:00
jetson
441a6a857e
fix(ui): accessibility, responsive, polish pass
2026-09-17 16:23:04 +07:00
jetson
20d523469d
fix(ui): jobs page — semantic cards, remove onclick, flat progress bar
2026-09-17 16:19:51 +07:00
jetson
b1170f42a9
feat(ui): jobs page — card grid with badges and thumbnails
2026-09-17 16:17:12 +07:00
jetson
63235832d6
fix(ui): status page — null safety, preview visibility, error handling
2026-09-17 16:07:33 +07:00
jetson
1c54bb1a11
feat(ui): status page — progress bar, live preview, result cards, polling
2026-09-17 16:05:22 +07:00
jetson
197c505fa4
fix(ui): upload page — fix double-toggle bug, replace hardcoded colors, improve error handling
2026-09-17 15:56:55 +07:00
jetson
f245e9427e
feat(ui): upload page — drag-drop, video preview, model cards
2026-09-17 15:53:32 +07:00
jetson
fbcff78543
feat(ui): design system foundation — CSS tokens, base template
2026-09-17 15:49:15 +07:00
jetson
40e2dbe453
fix: secure upload/download paths, default filter, status enum compare, upload validation
2026-09-16 15:06:40 +07:00
jetson
eb77e5be8a
feat: Flask web UI on port 9000 with upload, job status, API endpoints
2026-09-16 15:04:49 +07:00