A Flutter package to get NID no. and date of birth of Bangladeshi NID from NID image.


 File selectedNIDFront = File('');
 NIDReadFromImage nidReadFromImage=NIDReadFromImage();
 final pickedFile = await ImagePicker().getImage(source: imageSource);
 if (pickedFile != null)
     selectedNIDFront = File(pickedFile.path);

 var nid_dob=await nidReadFromImage.nidRead(selectedNIDFront);

selectedNIDFront is the front image of the nid. You have to pass this to this nidReadFromImage.nidRead() function like await nidReadFromImage.nidRead(selectedNIDFront) and it will return the NID No. and Date of birth from the image.