case class COCODataset(info: COCODatasetInfo, images: Array[COCOImage], annotations: Array[COCOAnotationOD], licenses: Array[COCOLicence], categories: Array[COCOCategory]) extends Product with Serializable
- Alphabetic
- By Inheritance
- COCODataset
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new COCODataset(info: COCODatasetInfo, images: Array[COCOImage], annotations: Array[COCOAnotationOD], licenses: Array[COCOLicence], categories: Array[COCOCategory])
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val annotations: Array[COCOAnotationOD]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- val categories: Array[COCOCategory]
-
def
categoryId2Idx(id: Long): Int
Convert COCO categoryId into category index.
Convert COCO categoryId into category index. COCO dataset's categoryId is not continuous from 1 to number of categories. This function maps every categoryId to a number from 1 to number of categories - The result is called category index. The category index 0 is reserved for "background" class.
- id
categoryId
- returns
category index
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
getCategoryByIdx(idx: Int): COCOCategory
Get the category data by the category index
Get the category data by the category index
- idx
category index
- returns
category data
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getImageById(id: Long): COCOImage
Find a COCOImage by the image id
Find a COCOImage by the image id
- id
image id
- returns
the COCOImage with the given id
- val images: Array[COCOImage]
- val info: COCODatasetInfo
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val licenses: Array[COCOLicence]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toImageFeatures: Iterator[ImageFeature]
Convert the images & ground truths into ImageFeatures.
Convert the images & ground truths into ImageFeatures. The image feature is in the same format of what COCODataset.loadFromSeqFile returns
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )