Comments (6)
Hi, @cmatsuoka.
I think the problem is in the way Go interracts with C libraries. Look at this article, for example.
There is a pull request I'm currently working on (#4) that should fix your problem. Unfortunately now it's under development because of issues that popped up during testing, but I've checked your example and it runs smoothly on my machine.
Have a look at goimpl branch of library and see if it helps you.
from webcam.
Hi @blackjack, I tried the goimpl branch and it indeed fixes the screen update rates and makes the example above run smoothly. It doesn't work completely because if I add the code to actually show the captured frame it seems that ReadFrame()
is always returning the same buffer. The index variable is being correctly updated from 0 to 31, but the buffer contents change only after a full index cycle. Maybe a queuing problem? Perhaps this is already in your radar, otherwise I can investigate further.
from webcam.
Confirmed: buffer sequence numbers are correct, pointers to frame data are different, but image data is the same for all buffers.
from webcam.
I've fixed buffer reading in 008c830, can you test it now?
from webcam.
Problem fixed, frames are being correctly updated. Thanks!
from webcam.
Good to hear that
from webcam.
Related Issues (20)
- image rotation
- examples/http_mjpeg_streamer: it always set largest frame size
- USING IT FOR RPI CAMERA? HOT 1
- Error if `/dev/video0` file not present HOT 2
- Travis CI tests break due to math/bits package error on Go <1.9 HOT 1
- WaitForFrame times out on RPi (with LifeCam and RPi internal camera) HOT 4
- output to mp4
- UYVY format support HOT 1
- how to stream two cameras?
- add support for V4L2_PIX_FMT_MJPEG
- Question ! who can help me HOT 1
- add V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE
- Invalid argument on capture
- Does not work on Pi OS anymore. Any plan to upgrade for the latest Raspberry Pi operating system? HOT 1
- Whired behaviour when returning frame `[]byte`
- Add support for unbuffered streaming HOT 1
- Webcam should prevent double close
- Request to become a maintainer or alternatively fork this library HOT 4
- Could this master version release? HOT 5
- v4l2.go / waitForFrame panics on "large" fds. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webcam.