Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Crop #835

Closed
wants to merge 1 commit into from
Closed

Conversation

Pritish-Sinha
Copy link

@Pritish-Sinha Pritish-Sinha commented Aug 24, 2020

πŸ› οΈ PR Summary

Made with ❀️ by Ultralytics Actions

🌟 Summary

Implementation of an image cropping script for preprocessing.

πŸ“Š Key Changes

  • Added a new MATLAB script file for image cropping.
  • The script loads a grayscale image and computes its histogram.
  • Performs thresholding to create a binary image.
  • Implements dilation and area opening to improve blob detection.
  • The script uses region properties to find bounding boxes and extracts each word.

🎯 Purpose & Impact

  • πŸ“ˆ Improve preprocessing steps by providing a dedicated image cropping function.
  • πŸ”„ The feature assists in preparing images for better object detection performance.
  • πŸš€ Enhances the utility of the repository for users working with image preprocessing and word detection tasks.

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @PuRgE-CoDeE, thank you for submitting a PR! To allow your work to be integrated as seamlessly as possible, we advise you to:

  • Verify your PR is up-to-date with origin/master. If your PR is behind origin/master update by running the following, replacing 'feature' with the name of your local branch:
git remote add upstream https://github.com/ultralytics/yolov5.git
git fetch upstream
git checkout feature  # <----- replace 'feature' with local branch name
git rebase upstream/master
git push -u origin -f
  • Verify all Continuous Integration (CI) checks are passing.
  • Reduce changes to the absolute minimum required for your bug fix or feature addition. "It is not daily increase but daily decrease, hack away the unessential. The closer to the source, the less wastage there is." -Bruce Lee

@glenn-jocher
Copy link
Member

@PuRgE-CoDeE Prediction box cropping is now available in YOLOv5 via PR #2827! PyTorch Hub models can use results.crop() or detect.py can be called with the --save-crop argument. Example usage:

python detect.py --save-crop

Screenshot 2021-04-20 at 23 50 51

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.

None yet

2 participants