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

我想请问一下,match.py文件对tif的大小输入有要求吗?以下是不同的报错信息 #158

Closed
HZWXW371 opened this issue Jun 16, 2023 · 2 comments
Assignees
Labels
question Further information is requested stale old issue/PR without interaction for a long time

Comments

@HZWXW371
Copy link

ERROR 4: Attempt to create new tiff file `E:\hz' failed: Permission denied
Traceback (most recent call last):
File "match.py", line 97, in
match(args.image1_path, args.image2_path, args.save_path, args.image1_bands,
File "D:\GIS\PaddleRS-develop\tools\utils\timer.py", line 23, in wrapper
result = func(*args, **kwargs)
File "match.py", line 80, in match
save_geotiff(im2_arr_t, save_path, im1_ras.proj, im1_ras.geot,
File "D:\GIS\PaddleRS-develop\tools\utils\raster.py", line 252, in save_geotiff
dst_ds.SetGeoTransform(geotf)
AttributeError: 'NoneType' object has no attribute 'SetGeoTransform'

2023-06-16 13:31:18,977-WARNING: post-quant-hpo is not support in system other than linux
Traceback (most recent call last):
File "match.py", line 97, in
match(args.image1_path, args.image2_path, args.save_path, args.image1_bands,
File "D:\GIS\PaddleRS-develop\tools\utils\timer.py", line 23, in wrapper
result = func(*args, **kwargs)
File "match.py", line 77, in match
H = _calcu_tf(im1, im2)
File "match.py", line 36, in _calcu_tf
mathces = bf.knnMatch(des2, des1, k=2)
cv2.error: OpenCV(4.3.0) C:\Users\appveyor\AppData\Local\Temp\1\pip-req-build-dfuyjxl6\opencv\modules\features2d\src\matchers.cpp:855: error: (-215:Assertion failed) trainDescCollection[iIdx].rows < IMGIDX_ONE in function 'cv::BFMatcher::knnMatchImpl'

@HZWXW371 HZWXW371 added the question Further information is requested label Jun 16, 2023
@github-actions github-actions bot added the triage new issue/PR waiting to be dealed label Jun 16, 2023
@Bobholamovic Bobholamovic self-assigned this Jun 16, 2023
@github-actions github-actions bot removed the triage new issue/PR waiting to be dealed label Jun 16, 2023
@Bobholamovic
Copy link
Member

你好,从报错信息上来看,请注意以下几个问题:

  1. 请确认当前用户是否具有足够的权限在E:\hz目录创建文件,如果没有的话,可能需要修改输出目录;
  2. 看起来图像尺寸过大了,超过了PaddleRS使用的cv::BFMatcher::knnMatchImpl能够处理的范围,请考虑对图像进行切块等预处理。

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale old issue/PR without interaction for a long time label Aug 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested stale old issue/PR without interaction for a long time
Projects
None yet
Development

No branches or pull requests

2 participants