srjth.m1
Full Member level 3
- Joined
- Aug 6, 2012
- Messages
- 157
- Helped
- 6
- Reputation
- 12
- Reaction score
- 6
- Trophy points
- 1,298
- Location
- India
- Activity points
- 2,126
Code:
typedef struct tagCFeature
{
short Mx[45];/** horizontal array */
short My[45];/** vertical array */
short Ma[45];/** feature direction array */
short Mt[45];/** feature type array */
short Mn; /** feature num */
}CFEATURE;
CFEATURE Feature_1, Feature_2;
void main()
while (1) {
if (TA_Capture(pImg) == TA_TIME_OUT) {
printf("\nTime out!\n");
return;
}
// 3 Second Delay
TA_hal_delay(3000000);
// 02. get feature_1 of the image_1
TA_GetFeature(pImg, pVbin, pTemp, &Feature_1);
// 03. Collect image_2 (Image size 128 x 128 & 250 DPI) to address:0x05000
if (TA_Capture(pImg) == TA_TIME_OUT) {
TA_hal_Beep_Fail();
printf("\nTime out!\n");
return;
}
// 04. get feature_2 of the image_2
TA_GetFeature(pImg, pVbin, pTemp, &Feature_2);
// 05. match two fingerprints
result = TA_MatchFingers(Feature_1, Feature_2);
// 06. match result
if (result) {
TA_hal_Beep_Success();
printf("\nFingerprints Match!\n");
} else {
TA_hal_Beep_Fail();
printf("\nFingerprints DO NOT Match!\n");
}
// 3 Second Delay
TA_hal_delay(3000000);
}
}
This is a demo code for my biometric reader in this they are storing the fingure image features to above structure i just want to take it and store in my eeprom via i2c can any body help to extract it