Closed HowcanoeWang closed 1 year ago
Passed on the ForestBrids dataset:
In [3]: fb = idp.data.ForestBirds()
In [4]: ms = idp.Metashape(fb.metashape.project, chunk_id=0)
In [6]: ms.sensors
Out[6]:
<easyidp.Container> with 2 items
[0] FC6540, DJI DL 35mm F2.8 LS ASPH (35mm)
<easyidp.reconstruct.Sensor object at 0x00000216FF2D15B0>
[1] FC6540, DJI DL 35mm F2.8 LS ASPH (35mm) [1]
<easyidp.reconstruct.Sensor object at 0x00000216FF2D84C0>
@bw4sz
For this metashape project, the
doc.xml
inHidden_Little_03_24_2022.files\0\chunk.zip
has the following record:The metashape mistakely duplicated the same sensor to two. And the easyidp assume the each sensor has different sensor label, so use it as the key. So in this case, the
sensor 1
rewrite thesensor 0
, forsensor
object.There should be a logic bug in
idp.Container
class which producessensors
object, I will take a look at it on this weekend.Originally posted by @HowcanoeWang in https://github.com/UTokyo-FieldPhenomics-Lab/EasyIDP/discussions/44#discussioncomment-5471582