VisRecog Visual Recognition Module of the

English and Russian bilingual ghost.pl AI in Perl

Mens Latina in Latin -- MindForth for Robots


1. Diagram of the VisRecog Mind-Module


   /^^^^^^^^\  VisRecog Finds Direct Object for a Verb  /^^^^\ 
  /   EYE    \              ____________               / EAR  \ 
 /            \            /  Sentence  \             /        \ 
|              |  | |     ( "I SEE A..." )           | auditory | 
|   _______    |  | |      \____________/            | memory   | 
|  / BIRD  \   |  | |          |                     | channel  | 
| / image   \--|----+    ______V________             |          | 
| \ engram  /  | a|c|f  /               \            |          | 
|  \_______/   | b|o|i (   VerbPhrase    )           |          | 
|              | s|n|b  \_______________/            |          | 
|   visual     | t|c|e   |     |        \            |          | 
|              | r|e|r   |   __V_____    \________   |          | 
|   memory     | a|p|s   |  /        \   /        \  |          | 
|              | c|t|    | ( VisRecog ) (NounPhrase) |          | 
|   channel    | t| |    |  \________/   \________/  |          | 
|              |  | |  __V______   |       |         |   "I"    | 
|    ______    |  | | ( English )  |       |         |          | 
|   /      \   |  | |  \ Verbs /---|-------|---------|- "SEE"   | 
|  /  new   \  |  | |   \_____/    |       |         |          | 
| /  percept \ |  |_|_           __V_______V____     |   "A"    | 
| \   of     / | /     \        /               \    |          | 
|  \  BIRD  /--|-\ Psy /-------(  English Nouns  )---|- "BIRD"  | 
|   \______/   |  \___/         \_______________/    |          |


2. Purpose of the VisRecog Mind-Module

The VisRecog module for Visual Recognition integrates a robotic visual system with the thinking structures of the AI Mind.


3. Algorithm of VisRecog

Before vision is actually implemented for robot embodiment, VisRecog says by default: I SEE NOTHING.


4. Code of VisRecog() from ghost327.pl AI source code in Perl


# The visual recognition module in the Perlmind for robots
# when fully implemented will serve the purpose of letting
# AI Minds dynamically describe what they see in real time
# instead of fetching knowledge from the AI knowledge base.
sub VisRecog() {  # http://ai.neocities.org/VisRecog.html
  # 2016jan22: NOTHING = default answer for "What do you see?"
  # http://medium.com/p/12c25b2570b2 -- How Strong AI recognizes an image
  # 2017-04-10: http://ai.neocities.org/VisRecog.gif -- animated VisRecog
  if ($hlc == 1) {     #2018-09-27: separate code for English and Russian...
    if ($svo4 == 0)  {  # 2017-04-11: if no direct object is available;
      for (my $i=$t; $i>$midway; $i--)    {  # 2018-09-27: search for 760=NOTHING
        my @k=split(',',$psy[$i]);     # 2018-09-27: examine @psy array;
        if ($k[1] == 760) {  # 2017-06-08: if psi 760=NOTHING is found;
          $aud = $k[20];  # 2019-08-01: "NOTHING" recall-vector for Speech()
          last;  # 2017-04-11: exit from loop;
        }  # 2017-04-11: End of search for 760=NOTHING;
      }  # 2017-04-11: End of search loop from $t back to $midway.
    }  # 2017-04-11: end of test for a noun to fill in "I SEE ____".
  }  # 2017-06-30: end of test for English thinking.
  if ($hlc == 3) {     #2018-09-27: separate code for English and Russian...
    # 2017-06-30: Russian search for "1228=НИЧЕГО" or "NOTHING"
    if ($svo4 == 0)  {  # 2017-06-30: if no direct object is available;
      for (my $i=$t; $i>$midway; $i--) {  # 2017-06-30: search for 1228=НИЧЕГО
        my @k=split(',',$psy[$i]);  # 2017-06-30: examine @psy array;
        if ($k[1] == 1228) {  # 2017-06-30: if psi 1228=NOTHING is found;
          $nphrpos = $k[6];  # 2017-09-03: set for EnArticle.
          $aud = $k[20];  # 2019-08-01: "NOTHING" recall-vector for Speech()
          last;  # 2017-06-30: exit from loop;
        }  # 2017-06-30: End of search for 1228=NOTHING;
      }  # 2017-06-30: End of search loop from $t back to $midway.
    }  # 2017-05-40: end of test for a noun to fill in "I SEE ____".
  }  # 2017-06-30: end of test for Russian thinking.
  Speech();  # 2017-04-11: speak the word starting at the $aud time. 
  # http://www.starboundliterature.space/visual-art.html
} # 2019-08-01: VisRecog returns to Sensorium +/- NLP generation modules.


5. Variables for the VisRecog Robot Mind-Module

img -- for future use as "image".

$nphrpos -- "noun-phrase part-of-speech" for testing during the EnThink() process.

$svo4 -- direct object -- item #4 in subject-verb-object.


6. Troubleshooting and Debugging for AI Mind Maintainers

6.1.a. Symptom: (Something goes wrong.)
6.1.b. Solution: (AI Mind Maintainer devises solution.)


7. Future Development of the VisRecog Robot Mind-Module

AI Minds need to be installed in robots with cameras for artificial vision.

Roadmap to Artificial Intelligence


8. Resources for VisRecog (Visual Recognition)


9. AiTree of Mind-Modules for Natural Language Understanding



"Look Inside" Kindle version to read initial chapters.


Website Counter