(fileData: File)
| 5 | |
| 6 | export class ImageDataUtil { |
| 7 | public static createImageDataFromFileData(fileData: File): ImageData { |
| 8 | return { |
| 9 | id: uuidv4(), |
| 10 | fileData, |
| 11 | loadStatus: false, |
| 12 | labelRects: [], |
| 13 | labelPoints: [], |
| 14 | labelLines: [], |
| 15 | labelPolygons: [], |
| 16 | labelNameIds: [], |
| 17 | isVisitedByYOLOObjectDetector: false, |
| 18 | isVisitedBySSDObjectDetector: false, |
| 19 | isVisitedByPoseDetector: false, |
| 20 | isVisitedByRoboflowAPI: false |
| 21 | } |
| 22 | } |
| 23 | |
| 24 | public static cleanAnnotations(item: ImageData): ImageData { |
| 25 | return { |
no outgoing calls
no test coverage detected