# Command Object Find

## Using of command

This command is use for find object in contours.Before this command you need call function Contours_Find. Object find algirithm is done be program in edit window. Create or edit object program is done in Edit window. For run edit window you need:

1. Put break on line with Object_Find command
2. Run debug mode clict on button Debug
3. When program stop on line with Object_Find command click on button Run One Step

Edit window for this command will display.Documentation for Edit window is here

## Commands parameters

Command has 5 parameters:

1. Source picture: You can select picture from where objects will find. It can be select Picture_0 to Picture_19
2. Contours: Contours block. You must select block of contours frome where objects will find. Thic block must be activated before this command in function Contours_Find . It can be select Contour_0 to Contour_19
3. Object block number. You can select number of object blocks where object find algoriths will be stored. It can be select Block_1 to Block_20
4. Object read mode. You can select if you want to read all Object parameters ,mode All or if you want to read only some parameters mode Basic Basic mode has parameters: Bounding rect height,Bounding rect width,Bounding rect x, Bounding rect y, contour area and perimeter
5. Result to. You can select where you want to store result of number of found objects. If you do mot want store this result select option none If you want to store number of found objects to some variable you can choose Variable_0 to Variable_99
6. List of Objects. You can select if List of objects will be cleared and new object found on this command will be add on the start of list:Option:New If you select option Append new object will be append to object list

## Error codes

1. Error code -11:Bad position in picture array. Picture number is not from range 0 to 19
2. Error code -12:Bad position in contour array. Contour number is not from range 0 to 19
3. Error code -13:Bad position in result variable index. Variable number is not from range 0 to 99
4. Error code -14:Bad object block number. Object number is not from range 1 to 20
5. Error code -15:Filter aplication error. Look on filter command in Edet window
6. Error code -16:Find object execution error. Look on object commands in Edit window
7. Error code -17:No object found in function. Look on object find commands
8. Error code -18:Object found structure is not alocated
9. Error code -19:Input Object found structure is not alocated