go-openc | open channel , Recycling closed chan | Natural Language Processing library
kandi X-RAY | go-openc Summary
kandi X-RAY | go-openc Summary
open channel, Recycling closed chan
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of go-openc
go-openc Key Features
go-openc Examples and Code Snippets
Community Discussions
Trending Discussions on go-openc
QUESTION
I'm acquiring frames from my built in webcam with go-opencv. The time it takes to acquire an image from the camera is ~50ms. The time to encode the PNG is ~300ms. Encoding a JPEG is 3x faster, but still horribly slow.
Why is this running so slowly?
Note: I've written similar code against NodeJS, executed on the same machine, and have absolutely no problem hitting 30fps w/ additional image processing. For me, this removes hardware issues from the equation.
My code looks like this:
...ANSWER
Answered 2017-Sep-27 at 05:42Why is this running so slowly?
Measure! Go has nice profiling tools built in e.g. into go test
.
Most probably it is the PNG encoder which is pure, "unoptimized" Go. If this is not fast enough for you you might want to consider contributing a faster PNG encoder.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install go-openc
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page