You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi!
Firstly forgive me if this is an easy solution I'm still very new to all this.
A few days ago I managed to successfully get everything to work correctly using images as the source.
I recently tried to use a video as a source but found myself running into issues, I then decided to just take the frames out of the video and use them as input images instead as I knew that I had succeeded at that before.
I'm not sure if at some point trying to use video I've screwed things up or if I just need to clean install things or what but I keep running into this issue now when I try to create transform.json.
Any help is extremely appreciated and my apologies if I didn't provide enough info.
Elapsed time: 0.291 [minutes]
==== running: mkdir colmap_text
==== running: colmap model_converter --input_path colmap_sparse/0 --output_path colmap_text --output_type TXT
outputting to transforms.json...
camera:
res=(1080.0, 1920.0)
center=(540.9972322983291, 956.4544408884366)
focal=(1660.3907635816822, 1668.278938684909)
fov=(36.031605022575675, 59.83597594816116)
k=(0.07043484873857946, -0.06639979142049124) p=(-5.218946270222431e-05, -0.0009328711758077937)
[ WARN:[email protected]] global D:\a\opencv-python\opencv-python\opencv\modules\imgcodecs\src\loadsave.cpp (239) cv::findDecoder imread_('./data\ExportPNGTest/Sequence_01052.jpg'): can't open/read file: check file path/integrity
Traceback (most recent call last):
File "C:\ngp\instant-ngp\scripts\colmap2nerf.py", line 257, in
b=sharpness(name)
File "C:\ngp\instant-ngp\scripts\colmap2nerf.py", line 112, in sharpness
gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
cv2.error: OpenCV(4.5.5) D:\a\opencv-python\opencv-python\opencv\modules\imgproc\src\color.cpp:182: error: (-215:Assertion failed) !_src.empty() in function 'cv::cvtColor'
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi!
Firstly forgive me if this is an easy solution I'm still very new to all this.
A few days ago I managed to successfully get everything to work correctly using images as the source.
I recently tried to use a video as a source but found myself running into issues, I then decided to just take the frames out of the video and use them as input images instead as I knew that I had succeeded at that before.
I'm not sure if at some point trying to use video I've screwed things up or if I just need to clean install things or what but I keep running into this issue now when I try to create transform.json.
Any help is extremely appreciated and my apologies if I didn't provide enough info.
Elapsed time: 0.291 [minutes]
==== running: mkdir colmap_text
==== running: colmap model_converter --input_path colmap_sparse/0 --output_path colmap_text --output_type TXT
outputting to transforms.json...
camera:
res=(1080.0, 1920.0)
center=(540.9972322983291, 956.4544408884366)
focal=(1660.3907635816822, 1668.278938684909)
fov=(36.031605022575675, 59.83597594816116)
k=(0.07043484873857946, -0.06639979142049124) p=(-5.218946270222431e-05, -0.0009328711758077937)
[ WARN:[email protected]] global D:\a\opencv-python\opencv-python\opencv\modules\imgcodecs\src\loadsave.cpp (239) cv::findDecoder imread_('./data\ExportPNGTest/Sequence_01052.jpg'): can't open/read file: check file path/integrity
Traceback (most recent call last):
File "C:\ngp\instant-ngp\scripts\colmap2nerf.py", line 257, in
b=sharpness(name)
File "C:\ngp\instant-ngp\scripts\colmap2nerf.py", line 112, in sharpness
gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
cv2.error: OpenCV(4.5.5) D:\a\opencv-python\opencv-python\opencv\modules\imgproc\src\color.cpp:182: error: (-215:Assertion failed) !_src.empty() in function 'cv::cvtColor'
Beta Was this translation helpful? Give feedback.
All reactions