[↑]
SmileBASIC4 Replica Reference
IRREAD
Read IR Motion Camera recognition results

IRREAD ControllerID OUT SamplingNumber,NoiseLevel,NumberOfData,DataArray

・It is necessary to start using the IR Motion Camera with IRSTART.

Argument

ControllerID

ID of the controller that reads the recognition result of the IR Motion Camera: 1 to 2

・For details on the controller ID, refer to the help for the CONTROLLER function.

Return Value

SamplingNumber

A number that increases by 1 each time new data is read

・If the same number is acquired continuously, it indicates that new data has not been received yet.

NoiseLevel

Noise level during recognition

・A value between 0 and 2 is returned. The smaller the value, the less noise and the more accurate the value is.

NumberOfData

The number of data contained in the data array

・In the clustering mode, the number of recognized clusters is displayed. The array contains information for each cluster.
・It's always 48 in the moment mode. The array contains information of each block obtained by dividing the imaging area into 8×6.

DataArray

An array containing the read recognition results

・A 2D array with a width of 8.
・The height contains a meaningful value from 0 to the number of data -1.
・The coordinate range is X: (0 to 320) Y: (0 to 240).
・The data format for the clustering mode is as follows.

0 Cluster X Coordinate
1 Cluster Y Coordinate
2 Cluster Width
3 Cluster Height
4 Number of Pixels in Cluster
5 Cluster Barycentric Coordinates X
6 Cluster Barycentric Coordinates Y
7 Average Cluster Brightness

・Data format in the moment mode is as follows.

0 Average Block Brightness
1 Block Barycentric Coordinates X
2 Block Barycentric Coordinates Y
About this site
Our site is an unofficial manual site of programming software "SmileBASIC" for NintendoSwitch™.
I acquire the content of the site from the official reference site of the SmileBoom Co.Ltd. that is the development and sales cause of the software in real time (a minimum period of 24 hours update) and display it. For automatic update, contents may become improper.
Please confirm the correct content in an official site.

June 3, 2020
by mim
OK
|