Title: why use more CPU than opencv · Issue #18 · UsingNet/nvjpeg-python · GitHub
Open Graph Title: why use more CPU than opencv · Issue #18 · UsingNet/nvjpeg-python
X Title: why use more CPU than opencv · Issue #18 · UsingNet/nvjpeg-python
Description: save some image. img = cv2.imread(img_file, cv2.IMREAD_COLOR) nj_jpg = nj.encode(img, 100) fp = open(output_img_path, "wb") fp.write(nj_jpg) fp.close() if use cv2.imwrite only use 14% CPU, but nvjpeg use 26% CPU
Open Graph Description: save some image. img = cv2.imread(img_file, cv2.IMREAD_COLOR) nj_jpg = nj.encode(img, 100) fp = open(output_img_path, "wb") fp.write(nj_jpg) fp.close() if use cv2.imwrite only use 14% CPU, but nvjp...
X Description: save some image. img = cv2.imread(img_file, cv2.IMREAD_COLOR) nj_jpg = nj.encode(img, 100) fp = open(output_img_path, "wb") fp.write(nj_jpg) fp.close() if use cv2.imwrite only use 14% CPU...
Opengraph URL: https://github.com/UsingNet/nvjpeg-python/issues/18
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"why use more CPU than opencv","articleBody":"save some image.\r\n```python\r\nimg = cv2.imread(img_file, cv2.IMREAD_COLOR) \r\nnj_jpg = nj.encode(img, 100) \r\nfp = open(output_img_path, \"wb\") \r\nfp.write(nj_jpg) \r\nfp.close()\r\n```\r\nif use cv2.imwrite only use 14% CPU, but nvjpeg use 26% CPU","author":{"url":"https://github.com/nistarlwc","@type":"Person","name":"nistarlwc"},"datePublished":"2023-06-13T05:25:56.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/18/nvjpeg-python/issues/18"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:2d3546fa-c3df-6d79-f6fc-ec145a95e87d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A3C2:9F0EE:113CF:17911:698F1680 |
| html-safe-nonce | 68f1442c6bcd44e90c5a9659808b20e87e6187fbc52fca7d7fa93ee4a6ed9979 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBM0MyOjlGMEVFOjExM0NGOjE3OTExOjY5OEYxNjgwIiwidmlzaXRvcl9pZCI6Ijg3MTQzOTg5Mjc3ODMxMzg5NDQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 41d768f70c0754fadf146c10ae2b56ed7e09b38a6e77e3bd5f6cad940a924da4 |
| hovercard-subject-tag | issue:1754066108 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/UsingNet/nvjpeg-python/18/issue_layout |
| twitter:image | https://opengraph.githubassets.com/36fe9874b6596b78d4f936460913e8275319061f31a78b962d3ec10fec586c36/UsingNet/nvjpeg-python/issues/18 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/36fe9874b6596b78d4f936460913e8275319061f31a78b962d3ec10fec586c36/UsingNet/nvjpeg-python/issues/18 |
| og:image:alt | save some image. img = cv2.imread(img_file, cv2.IMREAD_COLOR) nj_jpg = nj.encode(img, 100) fp = open(output_img_path, "wb") fp.write(nj_jpg) fp.close() if use cv2.imwrite only use 14% CPU, but nvjp... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | nistarlwc |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2da1a0d1318592c9965539b12269c4641177dfabfc86c3807992efb13e1d96ff |
| turbo-cache-control | no-preview |
| go-import | github.com/UsingNet/nvjpeg-python git https://github.com/UsingNet/nvjpeg-python.git |
| octolytics-dimension-user_id | 23328403 |
| octolytics-dimension-user_login | UsingNet |
| octolytics-dimension-repository_id | 334122746 |
| octolytics-dimension-repository_nwo | UsingNet/nvjpeg-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 334122746 |
| octolytics-dimension-repository_network_root_nwo | UsingNet/nvjpeg-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | c9646ffd6f86b00952c2b39e3c62e15904eff1e5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width