<< return to Pixycam.com

User Tools

Site Tools


wiki:v1:pixy_lego_block

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
wiki:v1:pixy_lego_block [2018/06/29 20:40]
pixycam
wiki:v1:pixy_lego_block [2018/06/29 20:56] (current)
pixycam [Parameters]
Line 1: Line 1:
- 
- 
- 
  
 ====== Pixy LEGO Block ====== ====== Pixy LEGO Block ======
Line 14: Line 11:
 ===== Parameters ===== ===== Parameters =====
  
-  ​**Port Selector**: use this to select the sensor port 1 through 4 that Pixy is plugged into on your controller brick. +  ​1. **Port Selector**: use this to select the sensor port 1 through 4 that Pixy is plugged into on your controller brick. 
-  ​**Mode Selector**: selects between measure and compare modes. +  ​2. **Mode Selector**: selects between measure and compare modes. 
-  ​**Signature**:​ selects the signature or [[wiki:​v1:​Using_Color_Codes|color code]] you'd like Pixy to search for. +  ​3. **Signature**:​ selects the signature or [[wiki:​v1:​Using_Color_Codes|color code]] you'd like Pixy to search for. 
-  ​**Signature Output**: outputs the number of blocks that match the signature or [[wiki:​v1:​Using_Color_Codes|color code]] you specified in the Signature input. Or it outputs the signature number of the detected object if in General Mode (see the description of modes below). +  ​4. **Signature Output**: outputs the number of blocks that match the signature or [[wiki:​v1:​Using_Color_Codes|color code]] you specified in the Signature input. Or it outputs the signature number of the detected object if in General Mode (see the description of modes below). 
-  ​**X centroid**: outputs the X location of the center of the largest object that Pixy has found. The number returned ranges from 0 to 255, with 0 being the rightmost pixel if facing the camera lens. +  ​5. **X centroid**: outputs the X location of the center of the largest object that Pixy has found. The number returned ranges from 0 to 255, with 0 being the rightmost pixel if facing the camera lens. 
-  ​**Y centroid**: outputs the Y location of the center of the largest object that Pixy found. The number returned is from 0 to 199, with 0 being the topmost pixel. +  ​6. **Y centroid**: outputs the Y location of the center of the largest object that Pixy found. The number returned is from 0 to 199, with 0 being the topmost pixel. 
-  ​**Width**: outputs the width of the largest block that Pixy has found. The number returned is from 1 to 256. +  ​7. **Width**: outputs the width of the largest block that Pixy has found. The number returned is from 1 to 256. 
-  ​**Height**: outputs the height of the largest block that Pixy has found. The number returned is from 1 to 256. +  ​8. **Height**: outputs the height of the largest block that Pixy has found. The number returned is from 1 to 256. 
-  ​**Angle**: is the angle (in degrees) of the largest object that Pixy has found. Angle information is only available for [[wiki:​v1:​Using_Color_Codes|color codes]], otherwise the value is 0.+  ​9. **Angle**: is the angle (in degrees) of the largest object that Pixy has found. Angle information is only available for [[wiki:​v1:​Using_Color_Codes|color codes]], otherwise the value is 0.
  
  
Line 64: Line 61:
 ===== Parameters ===== ===== Parameters =====
  
-  ​**Signature**:​ selects the signature or [[wiki:​v1:​Using_Color_Codes|color code]] you'd like Pixy to search for. +  ​1. **Signature**:​ selects the signature or [[wiki:​v1:​Using_Color_Codes|color code]] you'd like Pixy to search for. 
-  ​**Compare Type**: selects the comare operation you would like to use. +  ​2. **Compare Type**: selects the comare operation you would like to use. 
-  ​**Threshold Value**: the value you wish to compare against the number of detected objects that match the specified signature. +  ​3. **Threshold Value**: the value you wish to compare against the number of detected objects that match the specified signature. 
-  ​**Compare Result**: outputs the result of the compare operation. +  ​4. **Compare Result**: outputs the result of the compare operation. 
-  ​**Number of Blocks**: outputs the number of detected objects that match the specified signature.+  ​5. **Number of Blocks**: outputs the number of detected objects that match the specified signature.
  
 Compare Signature mode compares the number of detected objects to the Threshold Value (3) using the selected Compare Type (2). The True/False result is output in Compare Result (4), and the number of signatures is output in Number of Blocks (5) output. Compare Signature mode compares the number of detected objects to the Threshold Value (3) using the selected Compare Type (2). The True/False result is output in Compare Result (4), and the number of signatures is output in Number of Blocks (5) output.
Line 91: Line 88:
 ===== Parameters ===== ===== Parameters =====
  
-  ​**Signature**:​ selects the signature or [[wiki:​v1:​Using_Color_Codes|color code]] you'd like Pixy to search for. +  ​1. **Signature**:​ selects the signature or [[wiki:​v1:​Using_Color_Codes|color code]] you'd like Pixy to search for. 
-  ​**Compare Type**: selects the compare operation you would like to use. +  ​2. **Compare Type**: selects the compare operation you would like to use. 
-  ​**Threshold Value**: the value you wish to compare against the number of detected objects that match the specified signature. +  ​3. **Threshold Value**: the value you wish to compare against the number of detected objects that match the specified signature. 
-  ​**Number of Blocks**: outputs the number of detected objects that match the specified signature.+  ​4. **Number of Blocks**: outputs the number of detected objects that match the specified signature.
  
 The Wait Signature Compare block compares the number of detected objects to the Threshold Value (3) using the selected Compare Type (2). If the result is false, the program will be paused. If the result is true, the program will resume execution, and the number of detected objects is output in Number of Blocks (4). The Wait Signature Compare block compares the number of detected objects to the Threshold Value (3) using the selected Compare Type (2). If the result is false, the program will be paused. If the result is true, the program will resume execution, and the number of detected objects is output in Number of Blocks (4).
Line 112: Line 109:
 ===== Parameters ===== ===== Parameters =====
  
-  ​**Signature**:​ selects the signature or color code you'd like Pixy to search for. +  ​1. **Signature**:​ selects the signature or color code you'd like Pixy to search for. 
-  ​**Amount**: selects the amount of change in the number of objects detected. +  ​2. **Amount**: selects the amount of change in the number of objects detected. 
-  ​**Number of Blocks**: outputs the number of detected objects that match the specified signature.+  ​3. **Number of Blocks**: outputs the number of detected objects that match the specified signature.
  
 The Wait Change Signature block waits for a change in the number of specified objects detected by Pixy. If the number of objects that match the signature specified in the Signature input (1) changes by the number indicated in the Amount (2) input, the block returns, and the number of detected objects is output in Number of Blocks (3). The Wait Change Signature block waits for a change in the number of specified objects detected by Pixy. If the number of objects that match the signature specified in the Signature input (1) changes by the number indicated in the Amount (2) input, the block returns, and the number of detected objects is output in Number of Blocks (3).
Line 132: Line 129:
 ===== Parameters ===== ===== Parameters =====
  
-  ​**Signature**:​ selects the signature or color code you'd like Pixy to search for. +  ​1. **Signature**:​ selects the signature or color code you'd like Pixy to search for. 
-  ​**Compare Type**: selects the compare operation you would like to use. +  ​2. **Compare Type**: selects the compare operation you would like to use. 
-  ​**Threshold Value**: the value you wish to compare against the number of detected objects that match the specified signature.+  ​3. **Threshold Value**: the value you wish to compare against the number of detected objects that match the specified signature.
  
 The Loop Pixy Compare block compares the number of detected objects to the Threshold Value (3) using the selected Compare Type (2). If the result is false, the loop will be continue looping. If the result is true, the loop will exit. The Loop Pixy Compare block compares the number of detected objects to the Threshold Value (3) using the selected Compare Type (2). If the result is false, the loop will be continue looping. If the result is true, the loop will exit.
Line 152: Line 149:
 ===== Parameters ===== ===== Parameters =====
  
-  ​**Signature**:​ selects the signature or color code you'd like Pixy to search for. +  ​1. **Signature**:​ selects the signature or color code you'd like Pixy to search for. 
-  ​**Compare Type**: selects the compare operation you would like to use. +  ​2. **Compare Type**: selects the compare operation you would like to use. 
-  ​**Threshold Value**: the value you wish to compare against the number of detected objects that match the specified signature.+  ​3. **Threshold Value**: the value you wish to compare against the number of detected objects that match the specified signature.
  
 The Switch Pixy Compare block compares the number of detected objects to the Threshold Value (3) using the selected Compare Type (2). If the result is false, the false case is executed. If the result is true, the true case is executed. The Switch Pixy Compare block compares the number of detected objects to the Threshold Value (3) using the selected Compare Type (2). If the result is false, the false case is executed. If the result is true, the true case is executed.
wiki/v1/pixy_lego_block.1530304850.txt.gz · Last modified: 2018/06/29 20:40 by pixycam