Closed mkutu closed 1 week ago
@mkutu What should be included in this metadata file? I have attached an example of metadata for detection. ALA00138.json
use this file as a reference. What I changed:
renamed "exif_meta" to "exif_info"
reorganized image_info
added plant_field_info
turned category into a single dictionary
removed username
removed "MasterRefID"
removed basename
renamed detection_results to annotation
made annotation a dictionary
removed image_id from annotation dictionary
removed class_id from annotation dictionary
Exif_info should contain these keys only: ImageWidth ImageLength Make Model Software DateTime ExposureTime FNumber ExposureProgram ISOSpeedRatings RecommendedExposureIndex ExifVersion BrightnessValue MaxApertureValue LightSource Flash FocalLength ExposureMode WhiteBalance FocalLengthIn35mmFilm Contrast Saturation Sharpness LensModel LensSpecification BodySerialNumber
renamed bbox to bbox_xywh (bbox coordinates need to be changed accordingly). This should be a list of values xywh
@navjot-nangia I only change the file itself. I haven't changed anything.
DONE
@navjot-nangia keep "category" even if there are not detection results
make bbox_xywh as null if there is not detection result.
"annotation": {
"bbox_xywh": null
}
make the internal "bbox" variable in segment.py "_bbox" and write a comment or 2 to document the fact that it's internal use only
After using the method, these three parameters have issue:
Other parameters are good.
The exif data from one of the images: exif_data.txt
@navjot-nangia yea you can just rename them. I think bodyserial number only is exposed in some camera for some reason. Looks good
DONE
detect_weeds.py is not creating a metadata file no detections. Regardless if the image has or does not have detection results, the metadata file should still be there.