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: patch-diff.githubusercontent.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:54c67632-b70f-6815-f9a0-d7d7da240605 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C256:48E6D:157E91:1C9FCD:698EC9FE |
| html-safe-nonce | 06ec6a0e70cb608588449176f6d4429847f4803f21c005ef13a417f84c0ba715 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMjU2OjQ4RTZEOjE1N0U5MToxQzlGQ0Q6Njk4RUM5RkUiLCJ2aXNpdG9yX2lkIjoiMzgwOTYxMTQwNDYzNTE5NTkwMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 667488ef546ee19a8f650387fa19c52557601acd9ef828a8f1b16a4967b208ec |
| 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 | cb2828a801ee6b7be618f3ac76fbf55def35bbc30f053a9c41bf90210b8b72ba |
| 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 | e6b91a7e6e46287d26887e3fb7a4161657bab8f7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width