
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
aipasscni-data-extractor
Advanced tools
Library for extracting data from Cameroonian passports and national ID cards using OCR with Tesseract.js and generative AI models.
La bibliothèque d'extraction fournit des outils pour extraire des données à partir de documents d'identité camerounais, notamment les passeports et les cartes nationales d'identité (CNI). Elle utilise Tesseract.js pour la reconnaissance optique de caractères (OCR) et des modèles génératifs pour traiter et structurer les données extraites.
Clonez le dépôt :
git clone https://github.com/your-username/extraction-library.git
cd extraction-library
Installez les dépendances :
npm install
# ou
yarn install
Configurez la clé API :
Assurez-vous que la clé API est définie dans votre environnement. Par exemple, ajoutez la ligne suivante à votre fichier .env :
AIPASSCNI_API_KEY=your-api-key-here
Pour extraire les données d'un passeport camerounais, utilisez la fonction extractPassportData. Voici un exemple d'utilisation :
import { extractPassportData } from './src/cmr/passportExtractor'
import GeminiModel from './src/aiModels/geminiModel'
const model = new GeminiModel()
const passportImagePath = './images/passport1.jpg'
extractPassportData(passportImagePath, model)
.then((data) => console.log('Passport data:', data))
.catch((error) => console.error('Error extracting passport data:', error))
Pour extraire les données d'une CNI camerounaise, utilisez la fonction extractCniData. Voici un exemple d'utilisation :
import { extractCniData } from './src/cmr/cniExtractor'
import GeminiModel from './src/aiModels/geminiModel'
const model = new GeminiModel()
const frontImagePath = './images/cni11.jpg'
const backImagePath = './images/cni12.jpg'
extractCniData(frontImagePath, backImagePath, model)
.then((data) => console.log('CNI data:', data))
.catch((error) => console.error('Error extracting CNI data:', error))
Ce projet est sous licence MIT. Voir le fichier LICENSE pour plus de détails.
Pour toute question ou problème, veuillez contacter txchrixo@gmail.com.
FAQs
Library for extracting data from Cameroonian passports and national ID cards using OCR with Tesseract.js and generative AI models.
We found that aipasscni-data-extractor demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.