Code Monkey home page Code Monkey logo

Comments (9)

robertvazan avatar robertvazan commented on May 24, 2024

I don't understand what are you saying.

from sourceafis-java.

kpoman avatar kpoman commented on May 24, 2024

I suppose I understood he imports an ISO then exports it then matchs both initial and final .dat and there is no match, which would imply erros wether on input conv or output conv ?

from sourceafis-java.

robertvazan avatar robertvazan commented on May 24, 2024

I figured that much, but it makes no sense. A snippet, expected and actual output would help. Some explanation of how the OP came to that would also help improve the docs.

from sourceafis-java.

zengsentry avatar zengsentry commented on May 24, 2024

I suppose I understood he imports an ISO then exports it then matchs both initial and final .dat and there is no match, which would imply erros wether on input conv or output conv ?

Yes, you are right.

from sourceafis-java.

zengsentry avatar zengsentry commented on May 24, 2024

Dear robertvazan
Any recommend for ISO_19794_2_2005 format convert?

from sourceafis-java.

robertvazan avatar robertvazan commented on May 24, 2024

I still don't understand the issue here. SourceAFIS mainline can import ISO 19794-2:2005 within limits of its current public description:

https://templates.machinezoo.com/iso-19794-2-2005

SourceAFIS doesn't do ISO template export yet as that would require information from the expensive ISO specs. I can nevertheless provide it for a fee (full ANSI378 support was also added thanks to a sponsor).

So it is not clear to me what are you doing since one of the steps in your description (export to ISO 19794-2) is not currently possible.

from sourceafis-java.

zengsentry avatar zengsentry commented on May 24, 2024

As I compared both iso-19794-2-2005 and ANSI378 specs,I foud only a few field difference. so I changed the SourceAFIS source code then do some export to ISO 19794-2 testing.

ISO_ANSI378

	/**
         *  ForeignTemplate.java 
	 *  template export  
	 * @param out
	 * @throws IOException
	  @*/
	void write(DataOutputStream out) throws IOException {
		//TODO ? IllegalStateException  ISO_19794_2_2005
//		if (format == ForeignFormat.ISO_19794_2_2005)
//			throw new IllegalStateException();
		//head
		writeFormatMarker(out);
		//version code
		writeVersion(out); 
		writeTemplateLength(out); 
		//ISO_19794_2_2005  skip it
		if (format != ForeignFormat.ISO_19794_2_2005){
			writeProductId(out);
		}
		writeSensorInfo(out);
//		if (format == ForeignFormat.ANSI_378_2004){
//			dimensions.write(out);
//		}
         //X image size Y image size X resolution Y resolution # of finger views Reserved byte
		if (format == ForeignFormat.ANSI_378_2004 ||format == ForeignFormat.ISO_19794_2_2005 ){
			dimensions.write(out);
		}
		//off views 01
		writeFingerprintCount(out);
        //Reserved byte 00
		out.writeByte(0);  
		// Single Finger View Minutiae Record 
		for (int i = 0; i < fingerprints.size(); ++i){
			fingerprints.get(i).write(out, format, i);
		}  
	}

from sourceafis-java.

robertvazan avatar robertvazan commented on May 24, 2024

So it is clear now. You are testing your own quick ISO 19794-2 implementation. Simply adjusting field structure is not sufficient. There are semantic differences. I dimly remember the angle encoding is different. There might be new required fields, so even if you manage to successfully roundtrip the format, the templates might still be rejected by 3rd party software.

I am closing this issue since it is about your own code rather than about SourceAFIS.

from sourceafis-java.

zengsentry avatar zengsentry commented on May 24, 2024

Thanks robertvazan, you are right, the angle encoding is different.
do you have any recommend ?

from sourceafis-java.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.