mediapipe
mediapipe copied to clipboard
Inability to Resize Images Before Annotations in object_detector.ipynb
Description
Currently, in the object_detector.ipynb
notebook, there is no straightforward way to resize images before annotations are added. This functionality is crucial for cases where the original image size is too large to be displayed or processed efficiently.
Steps to Reproduce
- Open the
object_detector.ipynb
notebook. - Attempt to resize the input images before adding annotations.
Expected Behavior
It should be possible to resize input images before annotations are added, ensuring that annotations are made on the resized image.
Actual Behavior
There is no direct method provided in the notebook to resize images before annotations are added. As a result, annotations are made on the original-sized images. If we resize after annotations, it looks the annotations are tiny and non-readable.
Proposed Solution
- Add functionality to resize images before annotations are added in the notebook.
- Provide an example or guidance on how users can resize images effectively before passing them to the object detection pipeline.
Additional Information
Resizing images before annotation is a common requirement, especially when dealing with large images that may not fit well on the screen or may be too computationally expensive to process in their original size.