{"id":13605543,"url":"https://github.com/airob0t/idcardgenerator","last_synced_at":"2025-10-01T05:30:41.335Z","repository":{"id":40346208,"uuid":"66576281","full_name":"airob0t/idcardgenerator","owner":"airob0t","description":"身份证图片生成工具 generate an id card picture","archived":true,"fork":false,"pushed_at":"2019-11-25T08:28:48.000Z","size":113665,"stargazers_count":1443,"open_issues_count":6,"forks_count":465,"subscribers_count":43,"default_branch":"master","last_synced_at":"2025-01-20T17:33:49.299Z","etag":null,"topics":["idcard","opencv","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/airob0t.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-08-25T16:48:10.000Z","updated_at":"2025-01-19T12:30:49.000Z","dependencies_parsed_at":"2022-07-08T10:14:36.099Z","dependency_job_id":null,"html_url":"https://github.com/airob0t/idcardgenerator","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/airob0t/idcardgenerator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/airob0t%2Fidcardgenerator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/airob0t%2Fidcardgenerator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/airob0t%2Fidcardgenerator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/airob0t%2Fidcardgenerator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/airob0t","download_url":"https://codeload.github.com/airob0t/idcardgenerator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/airob0t%2Fidcardgenerator/sbom","scorecard":{"id":173609,"data":{"date":"2025-08-11","repo":{"name":"github.com/airob0t/idcardgenerator","commit":"34deb92aa6feb7c96d81b1773ed9bbdd1fb50bfd"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.1,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/29 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"project is archived","details":["Warn: Repository is archived."],"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/pythonpublish.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pythonpublish.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/airob0t/idcardgenerator/pythonpublish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pythonpublish.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/airob0t/idcardgenerator/pythonpublish.yml/master?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/pythonpublish.yml:18","Warn: pipCommand not pinned by hash: .github/workflows/pythonpublish.yml:19","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: GNU General Public License v3.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact win_v1.3 not signed: https://api.github.com/repos/airob0t/idcardgenerator/releases/17221848","Warn: release artifact win_v1.2 not signed: https://api.github.com/repos/airob0t/idcardgenerator/releases/14891984","Warn: release artifact v1.1 not signed: https://api.github.com/repos/airob0t/idcardgenerator/releases/9809232","Warn: release artifact win_v1.1 not signed: https://api.github.com/repos/airob0t/idcardgenerator/releases/9816111","Warn: release artifact 1.0 not signed: https://api.github.com/repos/airob0t/idcardgenerator/releases/4296322","Warn: release artifact win_v1.3 does not have provenance: https://api.github.com/repos/airob0t/idcardgenerator/releases/17221848","Warn: release artifact win_v1.2 does not have provenance: https://api.github.com/repos/airob0t/idcardgenerator/releases/14891984","Warn: release artifact v1.1 does not have provenance: https://api.github.com/repos/airob0t/idcardgenerator/releases/9809232","Warn: release artifact win_v1.1 does not have provenance: https://api.github.com/repos/airob0t/idcardgenerator/releases/9816111","Warn: release artifact 1.0 does not have provenance: https://api.github.com/repos/airob0t/idcardgenerator/releases/4296322"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-16T17:10:38.000Z","repository_id":40346208,"created_at":"2025-08-16T17:10:38.000Z","updated_at":"2025-08-16T17:10:38.000Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":277797726,"owners_count":25878857,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-01T02:00:09.286Z","response_time":88,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["idcard","opencv","python"],"created_at":"2024-08-01T19:01:00.026Z","updated_at":"2025-10-01T05:30:39.824Z","avatar_url":"https://github.com/airob0t.png","language":"Python","funding_links":[],"categories":["Python","Python (1887)"],"sub_categories":[],"readme":"# idcardgenerator\n【仅做研究使用，请遵守当地法律法规，法律后果自负】\n\n身份证图片生成工具,填入信息，选择一张头像图片,即可生成黑白和彩色身份证图片。\n\n可以选择是否自动抠图，自动抠图目前仅支持纯色背景，对自动抠图效果不满意可以手动抠图。\n\n在线抠图地址:(https://burner.bonanza.com/)\n\n(https://www.gaoding.com/koutu)\n\n## 更新:\n- 自动改变头像大小\n- 自动从纯色背景中抠图\n- 支持pip安装\n\n## ToDo\n- 自动从复杂背景下抠图\n\n## 环境\n- numpy\n- pillow\n- opencv\n\n## 下载\n## pip安装\n`pip install idcardgenerator`\n\n```\nfrom idcardgenerator import gui\ngui.run()\n```\n文件会生成在运行目录\n\n### Windows\n[下载](https://github.com/airob0t/idcardgenerator/releases/download/win_v1.3/idcardgenerator.exe)\n### Mac\n[下载](https://github.com/airob0t/idcardgenerator/releases/download/v1.1/idcardgenerator)\n\n## 打包程序\n\n安装pyinstaller\n\n`pip install pyinstaller`\n\nMac打包(打包成Mac app尚有问题未解决)\n\n    pyinstaller -i usedres/ico.icns --windowed --clean --noconfirm --onefile --add-data ./usedres:./usedres idcardgenerator.py\n\nWindows打包\n\n    pyinstaller -i usedres/ico.ico --windowed --clean --noconfirm --onefile --add-data \"usedres;usedres\" idcardgenerator.py\n\n## 参照标准：\n\n### 正面\n　　左上角为国徽，用红色油墨印刷;其右侧为证件名称“中华人民共和国居民身份证”，分上下两排排列，其中上排的“中华人民共和国”为4号宋体字，下排的“居民身份证”为2号宋体字;“签发机关”、“有效期限”为6号加粗黑体字;签发机关登记项采用，“xx市公安局”;有效期限采用“xxxx.xx-xxxx.xx.xx”格式，使用5号黑体字印刷，全部用黑色油墨印刷。\n\n### 背面\n　　“姓名”、“性别”、“民族”、“出生年月日”、“住址”、“公民身份号码”为6号黑体字，用蓝色油墨印刷；登记项目中的姓名项用5号黑体字印刷；其他项目则用小5号黑体字印刷；出生年月日 方正黑体简体字符大小：姓名＋号码（11点）其他（9点）字符间距（AV）：号码（50）字符行距：住址（12点）；身份证号码字体   OCR-B 10 BT   文字 华文细黑。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fairob0t%2Fidcardgenerator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fairob0t%2Fidcardgenerator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fairob0t%2Fidcardgenerator/lists"}