Comments (7)
Where can I find CamLive.py?
from bananapi-m2-zero-ov5640.
After I set with BananaPi-M2-Zero-OV5640 img uploading, I can find the home/pi/software/python/LiveCam directory, and there's a sample file called LiveCamp.py. I used it for test.
I work in 680,480 mode but didn't work in 1290,720.
I use this opencv code to change resolution in LiveCam.py
cap.set(cv2.CAP_PROP_FRAME_WIDTH, 1280)
cap.set(cv2.CAP_PROP_FRAME_HEIGHT, 720)
The result is the same if I excute before run it:
sudo media-ctl --device /dev/media1 --set-v4l2 '"ov5640 2-003c":0[fmt:YUYV8_2X8/1280x720@1/15]'
from bananapi-m2-zero-ov5640.
I'm very sorry, but do we have the same OS?
pi@banana:~$ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
pi@banana:~$ media-ctl --print-topology
Media controller API version 5.10.43
Media device information
------------------------
driver cedrus
model cedrus
serial
bus info platform:cedrus
hw revision 0x0
driver version 5.10.43
Device topology
- entity 1: cedrus-source (1 pad, 1 link)
type Node subtype V4L flags 0
device node name /dev/video0
pad0: Source
-> "cedrus-proc":0 [ENABLED,IMMUTABLE]
- entity 3: cedrus-proc (2 pads, 2 links)
type Node subtype Unknown flags 0
pad0: Sink
<- "cedrus-source":0 [ENABLED,IMMUTABLE]
pad1: Source
-> "cedrus-sink":0 [ENABLED,IMMUTABLE]
- entity 6: cedrus-sink (1 pad, 1 link)
type Node subtype V4L flags 0
device node name /dev/video0
pad0: Sink
<- "cedrus-proc":1 [ENABLED,IMMUTABLE]
from bananapi-m2-zero-ov5640.
I think it is same. I didn't chane anything..
Refer to this my capture list, please
pi@banana:~$ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
pi@banana:~$ media-ctl --print-topology
Media controller API version 5.10.43
Media device information
driver cedrus
model cedrus
serial
bus info platform:cedrus
hw revision 0x0
driver version 5.10.43
Device topology
-
entity 1: cedrus-source (1 pad, 1 link)
type Node subtype V4L flags 0
device node name /dev/video0
pad0: Source
-> "cedrus-proc":0 [ENABLED,IMMUTABLE] -
entity 3: cedrus-proc (2 pads, 2 links)
type Node subtype Unknown flags 0
pad0: Sink
<- "cedrus-source":0 [ENABLED,IMMUTABLE]
pad1: Source
-> "cedrus-sink":0 [ENABLED,IMMUTABLE] -
entity 6: cedrus-sink (1 pad, 1 link)
type Node subtype V4L flags 0
device node name /dev/video0
pad0: Sink
<- "cedrus-proc":1 [ENABLED,IMMUTABLE]
from bananapi-m2-zero-ov5640.
I've tested the software and have the same results (not surprising).
Both the C++ and Python (LiveCam) app give the same errors. The limited amount of memory (500 MB) seems to be the problem. I'm afraid there is not much we can do about it. Luckily, streaming is still possible with 1280x720.
However, even 1280x960 is a bridge too far to stream.
from bananapi-m2-zero-ov5640.
Then only two mode streaming is possib;e and can't change resolotuion setting in python?
from bananapi-m2-zero-ov5640.
Indeed, correct.
from bananapi-m2-zero-ov5640.
Related Issues (10)
- Banana Pi M2 Zero HOT 1
- only for test.
- congrats on an image but camera is not working HOT 1
- display setting changed after power cycling hdmi monitor HOT 1
- camera not enabled HOT 5
- V4l2 device not initializing HOT 9
- Mediapipe HOT 6
- Instructions for build for Generic Armbian Image HOT 1
- Video problem HOT 10
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 bananapi-m2-zero-ov5640.