Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

biometric reader help for storing binary data

Status
Not open for further replies.

srjth.m1

Full Member level 3
Full Member level 3
Joined
Aug 6, 2012
Messages
157
Helped
6
Reputation
12
Reaction score
6
Trophy points
1,298
Location
India
Visit site
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
 

u can store directly by continous storing data in eeprom and retrive it same format as u write.
that is first stote
1. Feature_1.Mx[0] in for loop and saame for other also.
i think there should not be any problem. if ur i2c protocol works properly.
 

am not that much familiar with i2c can you please explain about the continuous storing and if i need a particular template how can i retrieve back?
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top