first init
This commit is contained in:
@@ -38,6 +38,26 @@ The CLI example (`example_cli.py`) demonstrates:
|
||||
- Sending escape commands (Get Reader Info example)
|
||||
- Interactive mode for custom commands
|
||||
|
||||
### MyKad Reader (macOS and Windows)
|
||||
Uses the same PC/SC stack (`API.py` + `pyscard`) to read JPN data from a Malaysian MyKad (name, NRIC, address, photo). Insert the card into the ACR39U contact-side down.
|
||||
|
||||
```bash
|
||||
# GUI
|
||||
python MyKad_Reader.py
|
||||
|
||||
# CLI (prints JSON, writes photo.jpg)
|
||||
python mykad.py
|
||||
python mykad.py --list-readers
|
||||
|
||||
# Local helper API for Laravel (binds 127.0.0.1 only)
|
||||
python mykad_api.py
|
||||
# curl http://127.0.0.1:17321/status
|
||||
# curl -X POST http://127.0.0.1:17321/read
|
||||
# open http://127.0.0.1:17321/demo
|
||||
```
|
||||
|
||||
Optional photo preview in the GUI: `pip install pillow`.
|
||||
|
||||
## Advanced Usage
|
||||
|
||||
For developers who wish to integrate smart card functionality into their own Python applications, please refer to the [API Reference (API_REFERENCE.md)](./API_REFERENCE.md) for detailed programmatic examples and function documentation.
|
||||
|
||||
Reference in New Issue
Block a user