Icon

CRAFTED_​get-color-from-region_​OpenCV_​with_​object_​public


This workflow will determine the colors of a foreground object in an image. The workflow builds upon the results from the workflow 'CRAFTED_get-data-MINT_public' and 'CRAFTED_objectdetector_GVision_base64'

Note: this workflow guesses the foreground using coordinates of the foreground object generated by the 'CRAFTED_objectdetector_GVision_base64' workflow.
If you don't want/need to use the object detection workflow, use the workflow 'CRAFTED_get-color-from-region_OpenCV_no-object_public'.

Workflow components:

1. read data about the image and detected object(s) from a MongoDB and loads the image
2. determine the main colors
3. map the colors tot he colours of the European Fashion Thesaurus
4. write the image without background to a local disk
5. write the result in W3C annotation format to a file
6. write the result in W3C annotation format to the MongoDB

Configuration:
- set mongoDB connection to read image metadata [see workflow 'CRAFTED_get-data-MINT_public]
- set CP name and dataset ID
- set path to local disk for foreground image files (in folder 'IMAGES_NO_BCKGRND')
- set mongoDB connection to write results
- set path to annotations folder
- Optional: set number of clusters in the 'get colors' node
- Optional: set threshhold for infrequemnt colours in 'filter colors
Requirements:
- Knime (https://www.knime.com/)
- Python3 environment for Knime, as explained here: https://docs.knime.com/2018-12/python_installation_guide
- MongoDB Compass (see https://www.mongodb.com/products/compass)

unwanted objectsNode 232Node 344TESTERNode 353sourcedataSET CPNode 361Node 378Node 379replace w/FT colorsNode 390Node 394Node 395Node 396Node 397detectedobjectx1y1xwNode 411one object per imageNode 424Node 425Node 482only uniqueNode 484JSON Path Table Creator ReferenceRow Filter Table to PDF JSON Path Row Filter preview MongoDB Connector MongoDB Reader Variable Creator JSON Writer String Manipulation(Variable) String to Path(Variable) get colors JSON Path MongoDB Connector MongoDB Writer Chunk Loop Start Loop End MongoDB Reader Missing Value String Manipulation String Manipulation String Manipulation String Manipulation Joiner GroupBy recalculatepixels dimensions Missing Value make annotation GroupBy Date&Time Input(legacy) unwanted objectsNode 232Node 344TESTERNode 353sourcedataSET CPNode 361Node 378Node 379replace w/FT colorsNode 390Node 394Node 395Node 396Node 397detectedobjectx1y1xwNode 411one object per imageNode 424Node 425Node 482only uniqueNode 484JSON Path Table Creator ReferenceRow Filter Table to PDF JSON Path Row Filter preview MongoDB Connector MongoDB Reader Variable Creator JSON Writer String Manipulation(Variable) String to Path(Variable) get colors JSON Path MongoDB Connector MongoDB Writer Chunk Loop Start Loop End MongoDB Reader Missing Value String Manipulation String Manipulation String Manipulation String Manipulation Joiner GroupBy recalculatepixels dimensions Missing Value make annotation GroupBy Date&Time Input(legacy)

Nodes

Extensions

Links