Add VIA Video Annotator v2 and associated extension - #2
Open
Ankk98 wants to merge 15 commits into
Open
Conversation
- 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
videos/folder should be present along with the HTML. In case it is somewhere else, create a symlink.