Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <annotation>
- <folder>Definitiva</folder>
- <filename>armas (1)</filename>
- <path>C:UsersRobDesktopDefinitivaarmas (1).jpg</path>
- <source>
- <database>Unknown</database>
- </source>
- <size>
- <width>240</width>
- <height>145</height>
- <depth>3</depth>
- </size>
- <segmented>0</segmented>
- <object>
- <name>pistol</name>
- <pose>Unspecified</pose>
- <truncated>0</truncated>
- <difficult>0</difficult>
- <bndbox>
- <xmin>3</xmin>
- <ymin>1</ymin>
- <xmax>128</xmax>
- <ymax>100</ymax>
- </bndbox>
- </object>
- for name in *.xml; do X='/annotation/object/bndbox/xmin'
- Y='/annotation/size/width' Z=$X/$Y xmlstarlet ed --inplace -u
- '/annotation/object/bndbox/xmin' -v "$Z" "$name"; done
Add Comment
Please, Sign In to add comment