Template:FileContentsByBot/ColorRegions

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
ColorRegions
#ColorDelta ERGB  ConfidenceCoveragePositionCenter
Template documentationview · edit · history · purge ]

A collection of table rows (<tr>) containing information about associating color regions/areas. Use multiple or one {{FileContentsByBot/ColorRegions}} for the formatting. Refer to {{FileContentsByBot/ColorRegions}} to find how you can read the data from the HTML.
Row's id: FileContentsByBot-ColorRegions. Caption class: bot-ColorRegions-legend.
Contains the required markup to represent a color region/ associating area detected by a bot.

Usage

{{FileContentsByBot/ColorRegions
 |1 =
 |ID =
 |Color =
 |Delta_E =
 |Confidence =
 |Coverage =
 |RGB-00 =
 |RGB-01 =
 |RGB-02 =
 |RGBref-00 =
 |RGBref-01 =
 |RGBref-02 =
 |Position-00 =
 |Position-01 =
 |Position-02 =
 |Position-03 =
 |Center-00 =
 |Center-01 =
}}

Template parameters

ParameterDescriptionDefaultStatus
1Any number of {{FileContentsByBot/ColorRegions}} blocks. Confer example below.emptyoptional
IDThe color's id. The numbers should start with 1. Increment 1. Type: Integer.
Field's class: bot-ColorRegions-ID.
emptyrequired
ColorName associated to color.
Field's class: bot-ColorRegions-Color.
emptyrequired
Delta_EThe distance compared to the suggested color. Number only. Type: Float/Single.
Field's class: bot-ColorRegions-Delta_E.
emptyoptional
Confidence? Number only. Type: Float/Single.
Field's class: bot-ColorRegions-Confidence.
emptyoptional
CoverageThe relative area covered by this this color compared to the area of the full-size image. Number only. Type: Float/Single.
Field's class: bot-ColorRegions-Coverage.
emptyoptional
RGB-00The value of the red channel. Number only. Type: Single char/Byte.
Row's class: bot-ColorRegions-RGB. Field's class: bot-ColorRegions-RGB-R.
emptyrequired
RGB-01The value of the green channel. Number only. Type: Single char/Byte.
Row's class: bot-ColorRegions-RGB. Field's class: bot-ColorRegions-RGB-G.
emptyrequired
RGB-02The value of the blue channel. Number only. Type: Single char/Byte.
Row's class: bot-ColorRegions-RGB. Field's class: bot-ColorRegions-RGB-B.
emptyrequired
RGBref-00The value of the red channel associated with 'Color'.emptyrequired
RGBref-01The value of the green channel associated with 'Color'.emptyrequired
RGBref-02The value of the blue channel associated with 'Color'.emptyrequired
Position-00Bounding box (bbox) containing the region ... Number only. Type: Integer.
Row's class: bot-ColorRegions-Position. Field's class: bot-ColorRegions-Position-left.
emptyoptional
Position-01... Number only. Type: Integer.
Row's class: bot-ColorRegions-Position. Field's class: bot-ColorRegions-Position-top.
emptyoptional
Position-02... Number only. Type: Integer.
Row's class: bot-ColorRegions-Position. Field's class: bot-ColorRegions-Position-width.
emptyoptional
Position-03... Number only. Type: Integer.
Row's class: bot-ColorRegions-Position. Field's class: bot-ColorRegions-Position-height.
emptyoptional
Center-00The center (weighted average) of the region ... Number only. Type: Integer.
Row's class: bot-ColorRegions-Center. Field's class: bot-ColorRegions-Center-left.
emptyoptional
Center-01... Number only. Type: Integer.
Row's class: bot-ColorRegions-Center. Field's class: bot-ColorRegions-Center-top.
emptyoptional

Additional information

The template is intended to be used in the following namespaces: the File namespace

The template is intended to be used by the following user groups: Bots

Placement:

inside {{FileContentsByBot}} parameter Fields

See also

Localization

This template is not intended to be localized.

Example of usage

{{FileContentsByBot/ColorRegions|
  {{FileContentsByBot/ColorRegions
  | Confidence = 0.500
  | Color = Orange
  | RGBref-00 = 255
  | RGBref-01 = 165
  | RGBref-02 = 0
  | RGB-00 = 185
  | RGB-01 = 147
  | RGB-02 = 25
  | Coverage = 0.137
  | Delta_E = 13.630
  | ID = 1
  }}
  ...
}}

How the bot obtained this information