micasense / imageprocessing

MicaSense RedEdge and Altum image processing tutorials
https://www.micasense.com
MIT License
257 stars 152 forks source link

Micasense as a ground sensor #131

Closed khunsafatima closed 3 years ago

khunsafatima commented 3 years ago

Hi, I have used Micasense RedEdge to capture trees at the ground from a distance of 10m. As expected, its five bands have some spatial shift from each other. When I use the code provided by missense to align the bands, I get the following error:

ValueError: Input must be >= 2-d.

Kindly suggest how can I fix this issue.

poynting commented 3 years ago

I haven't seen this issue before. Can you share sample data (a full capture) that shows this issue?

poynting commented 3 years ago

Closing due to lack of response.

mpafit02 commented 2 years ago

I have the same issue.

In panel.py, the function radiance calls the _regionstats, which calls the np.fliplr, which raises the error:

ValueError: Input must be >= 2-d.

The issue is that the self.serial is None because it isn't initialized with a value since the _self.image.panelserial is None as well.

Here can be found the images I am using and the code (execute align_multispectrals_fast.py):

https://drive.google.com/drive/folders/1IPgvsvwEajhYcFJVFshbRjrnfEBDl4US?usp=sharing

Please help me,

Thank you in advance.

PowerChell commented 2 years ago

I am also getting this error. @poynting

I am using the Alignment Notebook on my own data. Some of my images it works just fine, but some I am getting this same error for. I have attached a photo of the code block as well as the entire error I am receiving. CodeBlock Error

PowerChell commented 2 years ago

I think it could be due to something with the calibration panel, for I get this error when running the panel through the "MicaSense Image Processing Setup" Tutorial. image

poynting commented 2 years ago

I have the same issue.

In panel.py, the function radiance calls the _regionstats, which calls the np.fliplr, which raises the error:

ValueError: Input must be >= 2-d.

The issue is that the self.serial is None because it isn't initialized with a value since the _self.image.panelserial is None as well.

Here can be found the images I am using and the code (execute align_multispectrals_fast.py):

https://drive.google.com/drive/folders/1IPgvsvwEajhYcFJVFshbRjrnfEBDl4US?usp=sharing

Please help me,

Thank you in advance.

@mpafit02 The Alignment notebook seems to run fine with this data. Since there is no panel image, the panelNames must be set to None.

image

poynting commented 2 years ago

@mirob9363 It's difficult to help without the problem data. However, in the picture above, it appears there is a specular reflection right on the QR code on the panel. This might be the problem, as this would make the QR code difficult for the software to find. I would suggest trying a different panel image which doesn't contain the reflection of the sun on the QR code. I like to use the Panels notebook to debug panel issues, but as the exception is showing, the panel is not detected in this image.

image