entities

package
v0.0.0-...-1108d43 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 25, 2021 License: GPL-2.0 Imports: 1 Imported by: 0

Documentation

Overview

This file is part of ImageAuGomentationCLI.

ImageAuGomentationCLI is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version.

ImageAuGomentationCLI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with ImageAuGomentationCLI. If not, see <https://www.gnu.org/licenses/>.

This file is part of ImageAuGomentationCLI.

ImageAuGomentationCLI is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version.

ImageAuGomentationCLI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with ImageAuGomentationCLI. If not, see <https://www.gnu.org/licenses/>.

This file is part of ImageAuGomentationCLI.

ImageAuGomentationCLI is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version.

ImageAuGomentationCLI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with ImageAuGomentationCLI. If not, see <https://www.gnu.org/licenses/>.

This file is part of ImageAuGomentationCLI.

ImageAuGomentationCLI is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version.

ImageAuGomentationCLI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with ImageAuGomentationCLI. If not, see <https://www.gnu.org/licenses/>.

This file is part of ImageAuGomentationCLI.

ImageAuGomentationCLI is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version.

ImageAuGomentationCLI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with ImageAuGomentationCLI. If not, see <https://www.gnu.org/licenses/>.

This file is part of ImageAuGomentationCLI.

ImageAuGomentationCLI is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version.

ImageAuGomentationCLI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with ImageAuGomentationCLI. If not, see <https://www.gnu.org/licenses/>.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Annotation

type Annotation struct {
	FileName      string
	NewName       string
	Width         int
	Height        int
	Depth         int
	BoundingBoxes []BoundingBox
	Classes       []string
}

type AnnotationType

type AnnotationType int
const (
	PASCAL_VOC     AnnotationType = 0
	NIL_ANNOTATION AnnotationType = 1
	GOOGLE         AnnotationType = 2
)

type AugmentationRequest

type AugmentationRequest struct {
	ImagesToAugemnt       []ImageInfo
	AnnotationsToAuGoment []Annotation
	Options               Options
}

type AugmentationResponse

type AugmentationResponse struct {
	AugmentedImages      chan ImageInfo
	AumgnetedAnnotations chan Annotation
}

type BoundingBox

type BoundingBox struct {
	Xmin int
	Ymin int
	Xmax int
	Ymax int
}

type Direction

type Direction int
const (
	LEFT          Direction = 0
	RIGHT         Direction = 1
	FLIP          Direction = 2
	ALL           Direction = 3
	NIL_DIRECTION Direction = 4
)

type ExcludeRequest

type ExcludeRequest struct {
	ExclusionThreshold    int
	UserDefinedExclusions []string
	ImageNames            []string
	Folder                string
	AnnotationType        AnnotationType
}

type ExcludeResponse

type ExcludeResponse struct {
	ClassesToExclude []string
}

type ImageInfo

type ImageInfo struct {
	ImageSource      image.Image
	OriginalFileName string
	NewName          string
}

type Options

type Options struct {
	Folder                string
	Size                  int
	Direction             Direction
	Sigma                 float64
	Annotated             bool
	BatchSize             int
	InAnnotationType      AnnotationType
	OutAnnotationType     AnnotationType
	ExclusionThreshold    int
	UserDefinedExclusions []string
	Scan                  bool
}

type PreprocessRequest

type PreprocessRequest struct {
	ImagePaths     []string
	ImageNames     []string
	AnnotationType AnnotationType
	// contains filtered or unexported fields
}

type ScanRequest

type ScanRequest struct {
	AnnotationType AnnotationType
	FolderToScan   string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL