VOC data sets and COCO data sets are directly converted to each other

Conversion between VOC dataset (xml format) and COCO dataset (json format) Let's first look at the directory structure of voc and coco datasets: Take the VOC2012 dataset as an example, there are five folders below: The Annotations folder is the XML file corresponding to the image. For example, "2007_000027.xml" stores the informatio ...

Added by gorgo666 on Thu, 17 Feb 2022 16:10:03 +0200

The difference between annotationType and getClass in Annotation

Introduction to the original question:  //In the Java language, through Class The Class object obtained by the forname (classname: String) method is Class <? >  //How can I make it a class? extends Annotation>  package com.github.unscientificjszhai.unscientificcourseparser.core.processor;  ​  import javax.annotation.processing.*;   ...

Added by billiondevil on Thu, 13 Jan 2022 16:13:55 +0200

Annotation introduction

1. Direct introduction annotation is a reference data type, which generates XXX after compilation Class bytecode file, 2. Definition notes [modifier list] @ interface annotation type name {} //Custom annotation @interface annotation{ //name is the attribute of the annotation String name(); } The modifier list can be omitted ...

Added by synergy on Sun, 09 Jan 2022 16:25:34 +0200

Compile time annotation

I learned to use compile time annotations to generate new files a long time ago, such as the butter knife in Android, but my goal is not to generate new classes, but to modify bytecode at compile time and make plug-ins like Lombok. Recently, I took time to find some materials and finally wrote my own compile time bytecode modification annotatio ...

Added by jtravis on Wed, 29 Dec 2021 15:21:46 +0200

Java custom annotation

Java custom annotation 1. Annotation definition Annotations are metadata that can be added to java code. Classes, methods, variables, parameters and packages can be modified with annotations. Annotations have no direct impact on the code they decorate. 2. Scope of use Annotations have many usesProvide information for the compiler Annotat ...

Added by Asday on Fri, 24 Dec 2021 08:04:20 +0200

2021-10-01 annotation and reflection I

1, Annotation 1. Built in annotation 1.1 Override Annotation for overriding superclass methods Can only be used for decorating methods Represents a method declaration intended to override another method in a superclass 1.2 Depecated Not recommended Can be used to decorate methods, properties, and classes Indicates that programmers are ...

Added by Ola on Fri, 01 Oct 2021 06:02:20 +0300