{"id":23102674,"url":"https://github.com/dataxujing/plotbox2","last_synced_at":"2025-07-31T17:33:42.692Z","repository":{"id":57453490,"uuid":"229513151","full_name":"DataXujing/plotbox2","owner":"DataXujing","description":":fire::fire::fire:A python package for plot bounding box in object detection","archived":false,"fork":false,"pushed_at":"2019-12-23T03:58:05.000Z","size":13282,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-21T10:51:29.984Z","etag":null,"topics":["package","pypi","pypi-packages","python"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/plotbox2/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DataXujing.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-12-22T03:28:29.000Z","updated_at":"2019-12-23T15:15:32.000Z","dependencies_parsed_at":"2022-08-29T06:51:33.459Z","dependency_job_id":null,"html_url":"https://github.com/DataXujing/plotbox2","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DataXujing/plotbox2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DataXujing%2Fplotbox2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DataXujing%2Fplotbox2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DataXujing%2Fplotbox2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DataXujing%2Fplotbox2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DataXujing","download_url":"https://codeload.github.com/DataXujing/plotbox2/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DataXujing%2Fplotbox2/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268079195,"owners_count":24192445,"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-07-31T02:00:08.723Z","response_time":66,"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":["package","pypi","pypi-packages","python"],"created_at":"2024-12-17T00:00:18.886Z","updated_at":"2025-07-31T17:33:42.628Z","avatar_url":"https://github.com/DataXujing.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"plotbox\n========\n\n\nXujing\n\nGo, Plot Bounding Box!\n\nDemo\n---------\n\n::\n\n    image = cv2.imread(\"./test.jpg\")\n    pt1=(60,45)\n    pt2=(430,500)\n    # plot box\n    drawRect(image,pt1,pt2,(0,0,255),thickness=1,style='dotted_1')\n    \n    # text_en\n    myText = 'Lena:97%'\n    font_size = 20\n    t_size = cv2.getTextSize(myText, 0, fontScale=0.2, thickness=2)[0]\n \n    new_pt2 = (pt1[0]+15*len(myText), pt1[1] - t_size[1]+10)\n    new_pt2 = (pt1[0] + len(myText)*10), pt1[1] - t_size[1] - 10\n    \n    cv2.rectangle(image, pt1, new_pt2, (0,0,255), -1)  # filled\n    image = drawText(image,myText, (pt1[0],pt1[1] - t_size[1] - 20),font_size,(0,0,0))\n\n\n    cv2.imshow('image',image)\n    cv2.waitKey()   \n\n\n.. image:: ./demo/demo1.jpg\n\n\n::\n\n   \n\n    image = cv2.imread(\"./test.jpg\")\n    pt1=(60,45)\n    pt2=(430,500)\n    # plot box\n    drawRect(image,pt1,pt2,(0,0,255),thickness=1,style='solid')\n\n    # text_cn\n    myText = '莱娜:97%'\n    font_size = 20\n\n    t_size = cv2.getTextSize(myText, 0, fontScale=0.2, thickness=2)[0]\n \n    new_pt2 = (pt1[0]+15*len(myText), pt1[1] - t_size[1]+10)\n    new_pt2 = (pt1[0] + len(myText)*15), pt1[1] - t_size[1] - 20\n    \n    cv2.rectangle(image, pt1, new_pt2, (0,0,255), -1)  # filled\n    image = drawText(image,myText, (pt1[0],pt1[1] - t_size[1] - 15),font_size,(0,0,0),font='cn_3')\n\n\n    cv2.imshow('image',image)\n    cv2.waitKey()    \n\n\n\n\nthe result like this:\n\n\n.. image:: ./demo/demo2.jpg \n\n\nHomePage\n----------\n\n* homepage: https://github.com/DataXujing/plotbox2\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdataxujing%2Fplotbox2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdataxujing%2Fplotbox2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdataxujing%2Fplotbox2/lists"}