Go to advanced search

by 6by9
Thu Feb 22, 2018 2:49 pm
Forum: Camera board
Topic: BGR slower than RGB?
Replies: 4
Views: 178

Re: BGR slower than RGB?

(I really must learn not to get distracted by potentially interesting things!) I had a look. Turns out that after plotting out what goes where, the code changes aren't as hideous as they at first seemed. After a slight false start (blasted short-paths) I think I have native conversion routines handl...
by 6by9
Thu Feb 22, 2018 7:26 am
Forum: Camera board
Topic: BGR slower than RGB?
Replies: 4
Views: 178

Re: BGR slower than RGB?

So is there much chance of seeing a direct I420 to BGR conversion at some point? Superficially, it seems like it should be relatively straightforward to implement given access to the I420 to RGB code. Certainly OpenCV is my only reason for wanting anything in BGR, but I think that is also going to ...
by 6by9
Wed Feb 21, 2018 4:16 pm
Forum: Camera board
Topic: BGR slower than RGB?
Replies: 4
Views: 178

Re: BGR slower than RGB?

My understanding is the VPU is converting to these formats from I420. The destination pixel ordering has no obvious influence on computation required for the colour space conversion. So perhaps when BGR is requested, the VPU actually converts to RGB first, then takes a second step going to BGR? Any...
by 6by9
Wed Feb 21, 2018 4:05 pm
Forum: Advanced users
Topic: saving videos taken with raspicam with names in incremental order
Replies: 11
Views: 178

Re: saving videos taken with raspicam with names in incremental order

Duplicate of viewtopic.php?f=63&t=205972&p=1276052

You're the one calling "camera.start_recording('my_video.h264')" or similar (NB not an mp4 file, just the raw elementary stream), so you need to do something to form a string that fulfils your criteria.
by 6by9
Wed Feb 21, 2018 2:58 pm
Forum: Camera board
Topic: Video artefacts in RGB/BGR modes
Replies: 6
Views: 330

Re: Video artefacts in RGB/BGR modes

I'm now a little confused, as the camera component is set to take unknown as the same as JFIF, so that should be consistent for the whole frame. Annoyingly my build seems to not want to run raspividyuv at the moment, so I can't check the full reason why things are going wrong. Can I just confirm tha...
by 6by9
Tue Feb 20, 2018 4:18 pm
Forum: Camera board
Topic: Raw sensor access / CSI-2 receiver peripheral
Replies: 435
Views: 73817

Re: Raw sensor access / CSI-2 receiver peripheral

One thing I am going to attempt experimenting with is creating one more line at the end of the image for meta data about that frame. In my case, I want to know which field it is (even/odd) for an interlaced image. I imagine you could do something similar for distinguishing between two frames. Yes, ...
by 6by9
Tue Feb 20, 2018 1:12 pm
Forum: Camera board
Topic: Raw sensor access / CSI-2 receiver peripheral
Replies: 435
Views: 73817

Re: Raw sensor access / CSI-2 receiver peripheral

Thanks for this great capability introduced by 6by9. I can easily follow the documents and am able to capture raw data from pi camera. We are developing an FPGA based multi-camera gadget and trying to use this interface. I see deeluk has some similar device. However for us, we connect it to pi as a...
by 6by9
Mon Feb 19, 2018 9:37 am
Forum: Camera board
Topic: Stereoscopic camera capture - now implemented.
Replies: 101
Views: 30037

Re: Stereoscopic camera capture - now implemented.

Sorry, forgot to look until now. Yes, I'm only notifying the first sensor that it should only ever use the chosen mode, the other one is either freely choosing for itself, or may be mismatching the chosen mode as array index values change. I'll see if it is an easy fix (it should be), although I don...
by 6by9
Sat Feb 17, 2018 8:08 pm
Forum: Camera board
Topic: Raw sensor access / CSI-2 receiver peripheral
Replies: 435
Views: 73817

Re: Raw sensor access / CSI-2 receiver peripheral

Update, my impedance is really off so I am going to just redo my board. Question, I am thinking of switching to CSI 1 instead of 0, so I can remove all vias from the path. Anything I should be aware of using CSI 1? I hadn't realised you were using CSI0 instead of 1. All standard Pi variants use CSI...
by 6by9
Fri Feb 16, 2018 4:08 pm
Forum: Camera board
Topic: Raspiraw Usage and error when executing "camera_i2c"
Replies: 12
Views: 416

Re: Raspiraw Usage and error when executing "camera_i2c"

(a) You have no choice over scaling with raspiraw. It is designed to get the image data off the sensor for your own purposes, not as a general purpose camera stack. The only scaling that will get done is if the input image is too high a resolution for the display engine, in which case it divides the...
by 6by9
Fri Feb 16, 2018 1:59 pm
Forum: Camera board
Topic: Raspiraw Usage and error when executing "camera_i2c"
Replies: 12
Views: 416

Re: Raspiraw Usage and error when executing "camera_i2c"

Can Raspiraw display video on the screen without storing the video like you can with Raspivid? If so, what is an example command line statement to do this? Don't specifiy an output file (ie omit "-o <filename>") and it'll do a crude job at rendering the stream to the screen. You have no AE or AWB, ...
by 6by9
Fri Feb 16, 2018 1:57 pm
Forum: C/C++
Topic: api to firmware
Replies: 7
Views: 431

Re: api to firmware

wlan signal strength is nothing to do with the GPU (same as the MAC address isn't) - use the Linux networking APIs. GPU temperature I've already quoted, although you're better off using the Linux thermal APIs. The watchdog is also under Linux control - driver is at https://github.com/raspberrypi/lin...
by 6by9
Fri Feb 16, 2018 8:23 am
Forum: General discussion
Topic: Convert Short to a 2's complement char help needed in C
Replies: 30
Views: 888

Re: Convert Short to a 2's complement char help needed in C

I suggest you never use the types int, short and char. int and short can change size depending on compiler (16, 32 bits, etc). char may or may not be a signed type, the C standard does not define it. Rather use the standard type int16_t, unit8_t etc. This specifies exactly what you want to the read...
by 6by9
Fri Feb 16, 2018 7:50 am
Forum: OpenMAX
Topic: resize component edges
Replies: 4
Views: 167

Re: resize component edges

I'm surprised the component accepts an odd width (or height) on YUV420 as the chroma subsampling does mean that you have odd effects at the edges. Things like u and v strides being y stride/2 fall down at that point as integer maths will round the strides down. Can you give examples of the exact num...
by 6by9
Thu Feb 15, 2018 5:22 pm
Forum: Graphics, sound and multimedia
Topic: "B101 HDMI to CSI-2 bridge" and 480p max input
Replies: 2
Views: 113

Re: "B101 HDMI to CSI-2 bridge" and 480p max input

More viewtopic.php?f=38&t=120702 for the TC358743.

If you're using raspivid, then the simple answer is you will not get further support. The firmware support was demo code that others are making use of.
by 6by9
Thu Feb 15, 2018 2:56 pm
Forum: C/C++
Topic: api to firmware
Replies: 7
Views: 431

Re: api to firmware

thanks, https://github.com/6by9/rpi3-gpiovirtbuf thats exactly what I'm looking for. but I couldn't find a tag for mac addr of wlan adapter, gpu temperature ... from where can I get these missing infos? querying from the os like /opt/vc/bin/vcgencmd measure_temp|awk -F "=" '{print $2}' is to time c...
by 6by9
Thu Feb 15, 2018 10:06 am
Forum: Camera board
Topic: Latency Differs between V1 and V2 Camera ?
Replies: 2
Views: 173

Re: Latency Differs between V1 and V2 Camera ?

The IMX219 has faster ADCs, so a faster pixel clock, and can run the CSI2 bus at a higher speed. That's one of the reasons that it can support 720P120, whilst OV5647 can only manage VGA90. Taking your example of the 1080P mode, OV5647 takes 29.6us to read out one line in that mode, therefore 31.9ms ...
by 6by9
Thu Feb 15, 2018 9:53 am
Forum: Camera board
Topic: Raspiraw Usage and error when executing "camera_i2c"
Replies: 12
Views: 416

Re: Raspiraw Usage and error when executing "camera_i2c"

/home/pi/raspiraw/camera_i2c: 112: /home/pi/raspiraw/camera_i2c: ./rpi3-gpiovirt buf: not found So that's the error. The file is in the raspiraw repo with the correct permissions, so something has gone wrong in transferring the files to your system. And please note that the https://github.com/6by9/...
by 6by9
Wed Feb 14, 2018 7:09 pm
Forum: Camera board
Topic: Stereoscopic camera capture - now implemented.
Replies: 101
Views: 30037

Re: Stereoscopic camera capture - now implemented.

I have a problem, when I select for example "-md 5" in "-3d sbs" mode both cameras using a different camera mode. raspivid -cd MJPEG -b 25000000 -fps 40 -md 5 -w 3072 -h 1232 -v -ss 3000 -ag 4 -dg 1 -awb off -awbg 1,1 -o test.mjeg Result: https://i.imgur.com/UWe1lg0.png Do I break any rule for 3D s...
by 6by9
Wed Feb 14, 2018 2:49 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: GoPro to CSI
Replies: 2
Views: 165

Re: GoPro to CSI

CSI is an electrical spec and protocol, not a physical connector. As an analogy think of "CSI" being "240V AC". It can be carried on IEC plugs, BS3631 13A plugs, Neutrik Powercon, 5A or 15A round pin, or any number of other connectors, but they're all still "240V AC". Without any other information o...
by 6by9
Wed Feb 14, 2018 2:40 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: how to solve; VIDEOIO ERROR: V4L2: Pixel format of incoming image is unsupported by OpenCV
Replies: 6
Views: 672

Re: how to solve; VIDEOIO ERROR: V4L2: Pixel format of incoming image is unsupported by OpenCV

Call Me Adept wrote:
Wed Feb 14, 2018 1:47 pm
I got it to work now. Sorry for not giving enough information and thanks for replying
So help out those who find themselves in the same situation in future, and say what you did to solve it.
by 6by9
Wed Feb 14, 2018 1:44 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: how to solve; VIDEOIO ERROR: V4L2: Pixel format of incoming image is unsupported by OpenCV
Replies: 6
Views: 672

Re: how to solve; VIDEOIO ERROR: V4L2: Pixel format of incoming image is unsupported by OpenCV

I have the same problem and I'm still unable to find a solution anywhere. And yet you haven't answered any of the questions I asked the original poster. Same questions to you - what device, and what format? "v4l2-ctl -D" and "v4l2-ctl -V" (OP hung around the forums for 10 minutes after posting and ...
by 6by9
Wed Feb 14, 2018 10:30 am
Forum: Camera board
Topic: low-level interfacing to OV5647
Replies: 98
Views: 27658

Re: low-level interfacing to OV5647

I just want to know GPIO level information of SOCs of J3 connector ( CSI port ) of Raspberry PI3 Model B i.e I mean the GPIO details with which the CSI port is connected. (Starting a new thread may have been a better bet) The pinout is as shown on the schematic - https://www.raspberrypi.org/documen...
by 6by9
Wed Feb 14, 2018 9:49 am
Forum: C/C++
Topic: api to firmware
Replies: 7
Views: 431

Re: api to firmware

Yes you can get to the mailbox API, but don't go directly mmaping registers. As in ShiftPlusOne's sample, /dev/vcio is your friend.
See https://github.com/6by9/rpi3-gpiovirtbuf for another example which is controlling the LEDs on the Pi3.
by 6by9
Tue Feb 13, 2018 12:56 pm
Forum: General discussion
Topic: Power Pi Zero from UK light switch wiring
Replies: 16
Views: 558

Re: Power Pi Zero from UK light switch wiring

A light FITTTING is very different from the light SWITCH. How dare you raise your voice at me :twisted: I studied home electrics and wiring at college I know what the difference is between a SWITCH and a FITTING ! So why talk twaddle with Not strictly true, all wiring has live and neutral connectio...

Go to advanced search