Package ai.djl.modality.cv.translator
Enum YoloV5Translator.YoloOutputType
- java.lang.Object
-
- java.lang.Enum<YoloV5Translator.YoloOutputType>
-
- ai.djl.modality.cv.translator.YoloV5Translator.YoloOutputType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<YoloV5Translator.YoloOutputType>
- Enclosing class:
- YoloV5Translator
public static enum YoloV5Translator.YoloOutputType extends java.lang.Enum<YoloV5Translator.YoloOutputType>
A enum represents the Yolo output type.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static YoloV5Translator.YoloOutputType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static YoloV5Translator.YoloOutputType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BOX
public static final YoloV5Translator.YoloOutputType BOX
-
DETECT
public static final YoloV5Translator.YoloOutputType DETECT
-
AUTO
public static final YoloV5Translator.YoloOutputType AUTO
-
-
Method Detail
-
values
public static YoloV5Translator.YoloOutputType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (YoloV5Translator.YoloOutputType c : YoloV5Translator.YoloOutputType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static YoloV5Translator.YoloOutputType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-