Skip to content

Error when trying to use "Align Region" feature #231

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

Closed
m0m0herde opened this issue Apr 27, 2023 · 0 comments · Fixed by #235 or #241
Closed

Error when trying to use "Align Region" feature #231

m0m0herde opened this issue Apr 27, 2023 · 0 comments · Fixed by #235 or #241
Labels
bug Something isn't working

Comments

@m0m0herde
Copy link

Describe the bug
When opening AutoSplit and using the "Align Region" option, I get an error when selecting a picture (picture attached).

To Reproduce
Steps to reproduce the behavior:

  1. Open AutoSplit
  2. Click on "Align Region"
  3. Chose the picture
  4. See error

Expected behavior
AutoSplit should align the region by comparing the Align Image with the Capture Region, as it did in all versions before v2.0.0.

Screenshots and recordings
image

Traceback or Crash Report
If AutoSplit showed an exception traceback, please paste it here:

Traceback (most recent call last):

  File "AutoSplit.py", line 181, in <lambda>

  File "region_selection.py", line 194, in align_region

  File "region_selection.py", line 249, in __test_alignment

cv2.error: OpenCV(4.7.0) D:\a\opencv-python\opencv-python\opencv\modules\imgproc\src\templmatch.cpp:1164: error: (-215:Assertion failed) (depth == CV_8U || depth == CV_32F) && type == _templ.type() && _img.dims() <= 2 in function 'cv::matchTemplate'

Version (please complete the following information):

  • OS: Windows 10.0.19045
  • AutoSplit: v2.0.1

AutoSplit Profile and Split Images
toml settings and Align picture.zip

@m0m0herde m0m0herde added the bug Something isn't working label Apr 27, 2023
@m0m0herde m0m0herde changed the title Error when trying to use "Align Region" Feature Error when trying to use "Align Region" feature Apr 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant