Skip to content

Add VIA Video Annotator v2 and associated extension - #2

Open
Ankk98 wants to merge 15 commits into
bulk-review-extentionfrom
bulk-review-extention-2
Open

Add VIA Video Annotator v2 and associated extension#2
Ankk98 wants to merge 15 commits into
bulk-review-extentionfrom
bulk-review-extention-2

Conversation

@Ankk98

@Ankk98 Ankk98 commented Dec 15, 2025

Copy link
Copy Markdown
Owner

videos/ folder should be present along with the HTML. In case it is somewhere else, create a symlink.

  • Introduced a new HTML file for the VIA Video Annotator v2, enhancing the existing functionality with batch loading and a persistent keyboard shortcuts panel.
  • Added a new JavaScript extension for the annotator, enabling bulk dataset loading and review management for JSON-based segment review.
  • Updated default settings to increase the number of visible temporal segment timelines from 4 to 8 for improved user experience.
  • Enhanced the user interface with new controls for loading and saving datasets, as well as navigating through annotation entries.

Ankk98 and others added 15 commits December 15, 2025 18:20
- Introduced a new HTML file for the VIA Video Annotator v2, enhancing the existing functionality with batch loading and a persistent keyboard shortcuts panel.
- Added a new JavaScript extension for the annotator, enabling bulk dataset loading and review management for JSON-based segment review.
- Updated default settings to increase the number of visible temporal segment timelines from 4 to 8 for improved user experience.
- Enhanced the user interface with new controls for loading and saving datasets, as well as navigating through annotation entries.
- Implemented a side panel for easy navigation of JSON files, displaying their indices and allowing users to jump to specific entries.
- Added controls for toggling the side panel visibility and jumping to a specific index, enhancing user experience in managing datasets.
- Updated the UI to reflect the current index and provide a clear overview of loaded JSON files.
- Introduced three new scripts: `diff_json_configs.py` for comparing JSON files with pretty-printing, `pretty_print_json.py` for formatting JSON output, and `update_video_paths.py` for updating video paths in JSON annotations.
- Enhanced error handling for file operations and JSON parsing in all scripts.
- Improved user experience by providing clear output messages for changes made to JSON files.
- Updated the logic in `update_video_paths.py` to derive video file names from the JSON file name, ensuring consistency in naming conventions.
- Enhanced the handling of file extensions, defaulting to `.mp4` when none is provided, and adjusted comments for clarity on the changes made.
- Implemented a new branding function in the `_via_annotator_v2_extension` to update the logo and page title to reflect MyTron Labs.
- The branding function attempts to locate the logo panel in the control panel and updates it with a link to MyTron Labs, ensuring a non-invasive integration.
- Enhanced the sorting logic for annotations to be case-insensitive and added tie-breaking by filename for consistent file order display.
- Changed all instances of "MyTron Labs" to "TronLabs" in HTML and JavaScript files, including titles and metadata.
- Enhanced the branding function in the annotator extension to ensure consistent naming and logo updates.
- Implemented normalization of project metadata to reflect the new branding when loading projects.
- Introduced a new CSS file for the Annotator v2 layout, implementing a modern 4-section design with a light theme.
- Updated the HTML to include the new CSS file for the Annotator v2.
- Enhanced the JavaScript extension to support dual timelines for original and review modes, improving user interaction and data visualization.
- Modified the side panel to ensure it integrates seamlessly with the new layout and displays dataset files effectively.
- Updated `.gitignore` to include the new 'videos/' directory for better file management.
- Updated CSS for the Annotator v2 layout, adding padding for labels and improving background opacity for timeline labels.
- Introduced new styles to hide the toolbar in readonly mode and ensure proper positioning of temporal segmenter containers.
- Modified JavaScript to clean up old readonly timelines, prevent duplicate entries, and manage UI configurations separately for readonly timelines.
- Improved interaction handling by disabling pointer events on readonly timelines and ensuring consistent styling across components.
- Introduced a new CSS file for the Annotator v2 extension, implementing styles for dual timeline view and dataset navigation features.
- Updated the HTML to link the new CSS file, replacing the previous validation extension styles.
- Enhanced the user interface with specific styles for buttons, keyboard shortcuts panel, and TronLabs branding elements.
- Added CSS styles to visually distinguish reviewed files with a green tint in the dataset row.
- Updated JavaScript to prioritize loading JSON files from the review/ folder over annotations/, ensuring the most recent reviewed version is used.
- Implemented logic to display the source of loaded files (review or original) in the UI, improving user clarity on file status.
- Enhanced the loading process to handle original files for comparison when a review version is active, ensuring accurate data representation.
- Added keyboard shortcuts for navigation and saving, enhancing user efficiency.
- Introduced change tracking to detect unsaved changes, prompting users before navigating away.
- Implemented a filter dropdown to manage file visibility based on review status (all, reviewed, unreviewed).
- Enhanced video file handling by linking video files to their respective JSON entries, ensuring proper loading.
- Updated UI elements to reflect new functionalities and improve user experience.
- Introduced a comprehensive user manual detailing features, interface, and usage instructions for the TronLabs Video Annotator v2.
- Included sections on getting started, understanding the interface, loading datasets, reviewing videos, and troubleshooting.
- Added keyboard shortcuts and tips for efficient navigation and editing.
- Documented the new functionalities introduced in version 2.1, including unsaved changes detection and file filtering options.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant