ImageInstanceQ

ImageInstanceQ[image,obj]

gives True if image appears to be an instance of the object obj, and gives False otherwise.

ImageInstanceQ[image,obj1|obj2|]

gives True if image appears to be an instance of any of obji, and gives False otherwise.

ImageInstanceQ[image,obj,category]

assumes that the image is of something in the specified category.

Details and Options

  • Possible forms for both objects and categories are:
  • "type"entity type, as used in Interpreter
    "concept"named concept, as used in "Concept" entities
    "word"English word, as used in WordData
    wordspecword sense specification, as used in WordData
    Entity[]any appropriate entity
    category1|category2|any of the categoryi
  • The following options can be given:
  • PerformanceGoalAutomaticfavor algorithms with specific advantages
    RecognitionPrior0.5prior probability for a True result
    RecognitionThreshold0.5what recognition probability to require

Examples

open allclose all

Basic Examples  (2)

Test of whether an image is an instance of a particular object:

In[1]:=
Click for copyable input
Out[1]=

Perform the test within a specific category:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=

Options  (2)

See Also

ImageIdentify  Interpreter  Classify  MemberQ  ImageQ

Introduced in 2015
(10.1)