Skip to content

rhyolight/htm-2d-object-modeling

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HTM 2D Object Modeling

See the origin of this project on this HTM Forum thread.

The purpose of this project is to define 2D Object Recognition Tests.

Object Schema

Objects exist within a 2D space. The space has a width and height. Each location in the space can be identified with an X and Y integer coordinate. Each location may have a Feature.

Objects can be defined as collections of Features in 2D space. Here is an example object schema containing one feature X at 14,5

---
name: Some Object
width: 20
height: 20
features:
  - { x: 14, y: 5, data: X }

Features

Features always contain data. A Feature's data is used by the Agent to identify objects.

Initially, all Features consist of a simple data type, but should be extensible to contain any data type. For example, current the current Object Library consists of simple one-character features.

Object Library

The Object Library can be found in objects/. Each YAML file within this directory contains one object definition in the format specified in "Object Schema" above.

There are currently 2 objects in the library.

Agency

An Agent can exist in a location within an Object space. An Agent observing an object will receive features in space according to the location of its sensors.

Agent picture

Each Agent has exactly 4 sensors:

  • North (Agent Y - 1)
  • South (Agent Y + 1)
  • East (Agent X + 1)
  • West (Agent X - 1)

At one time step, an Agent can be at only one location in Object space. Each sensor has access to the Feature beneath it.

Agents should use their sensors to attempt to identify the object under observation at each time step.

Test Challenge #1

JavaScript

Code in the javascript/ subfolder can be used to visualize Objects in the Object Library.

Python

Code in the python/ subfolder contains the beginnings of simple Agent and Environment implementations.

Releases

No releases published

Packages

No packages published

Languages

  • Python 65.1%
  • JavaScript 20.1%
  • Java 7.8%
  • HTML 5.5%
  • CSS 1.5%