swan.ai.ocrIdCard

    Object object

    success 返回参数说明

    住址/公民身份号码/出生/姓名/性别/民族 返回值说明

    location 返回值说明

    示例

    跳转编辑工具

    在开发者工具中打开

    扫码体验

    代码示例

    请使用百度APP扫码

    swan.ai.ocrIdCard - 图2

    代码示例

    • JS
    • JSON
    1. "log_id": $log_id,
    2. "direction": 0,
    3. "image_status": "normal",
    4. "idcard_type": "normal",
    5. "edit_tool": "Adobe Photoshop CS3 Windows",
    6. "words_result": {
    7. "住址": {
    8. "location": {
    9. "left": 267,
    10. "top": 453,
    11. "width": 459,
    12. "height": 99
    13. "words": "南京市江宁区弘景大道3889号"
    14. },
    15. "公民身份号码": {
    16. "location": {
    17. "left": 443,
    18. "top": 681,
    19. "width": 589,
    20. },
    21. "words": "330881199904173914"
    22. },
    23. "出生": {
    24. "location": {
    25. "left": 270,
    26. "top": 355,
    27. "width": 357,
    28. "height": 45
    29. },
    30. "words": "19990417"
    31. },
    32. "姓名": {
    33. "location": {
    34. "left": 267,
    35. "top": 176,
    36. "height": 50
    37. },
    38. "words": "伍云龙"
    39. "性别": {
    40. "location": {
    41. "left": 269,
    42. "top": 262,
    43. "width": 33,
    44. "height": 52
    45. },
    46. "words": "男"
    47. },
    48. "民族": {
    49. "location": {
    50. "left": 492,
    51. "top": 279,
    52. "width": 30,
    53. "height": 37
    54. },
    55. "words": "汉"
    56. }
    57. },
    58. "words_result_num": 6