Go to advanced search

by therealdavidp
Sat Nov 28, 2020 11:02 am
Forum: Camera board
Topic: Captured image completely different from preview
Replies: 19
Views: 892

Re: Captured image completely different from preview

Thank you for all the information and the example pictures, that's very helpful. I'm sorry I wasn't still following that earlier thread, so my apologies for that. I'm keen to try and help people (though I have to be realistic about what we can feasibly do in the Broadcom stack), and going on the hun...
by therealdavidp
Fri Nov 27, 2020 11:58 am
Forum: Camera board
Topic: Captured image completely different from preview
Replies: 19
Views: 892

Re: Captured image completely different from preview

Hi again

Thanks for all the information.

Perhaps I could ask could ask the OP to try the capture again but without the digital zoom (the "-roi" parameter), and then to crop and rescale the image afterwards using an image editor. Does this give you the level of detail you expect?

Thanks!
by therealdavidp
Tue Nov 24, 2020 2:52 pm
Forum: Camera board
Topic: Raspberry Pi camera pictures and video have pink tint
Replies: 9
Views: 1062

Re: Raspberry Pi camera pictures and video have pink tint

Ah, all this talk of grey world AWB made me think we were talking about a NoIR module. And I was replying to djtommye without checking if the original post was the same person with the same problem, so now I'm all a bit confused. Sorry about that. But as 6by9 said, it's difficult to understand what'...
by therealdavidp
Tue Nov 24, 2020 2:29 pm
Forum: Camera board
Topic: Captured image completely different from preview
Replies: 19
Views: 892

Re: Captured image completely different from preview

Hi We've had a look at the test.png (actually jpg+raw) in your Dropbox link. Obviously things to look at are 1) the quality of the raw image itself, and 2) the processing that is done on it. This second item is important, but before anything else the raw image has to show the details that you want. ...
by therealdavidp
Tue Nov 24, 2020 10:28 am
Forum: Camera board
Topic: Raspberry Pi camera pictures and video have pink tint
Replies: 9
Views: 1062

Re: Raspberry Pi camera pictures and video have pink tint

Hi I'm assuming this is a NoIR sensor (i.e. without an IR filter)? I'd recommend you to try the awb "grey world" method - it doesn't give you a greyscale image if that's what you're worried about, it gives you an image that's grey *on average*. Looking at your images, I'd expect it to work reasonabl...
by therealdavidp
Thu Nov 19, 2020 1:42 pm
Forum: Camera board
Topic: libcamera C++ API
Replies: 27
Views: 1124

Re: libcamera C++ API

Hi again First of all, thanks for trying some of this stuff out, it does help us to try and make things better, and that's really appreciated. I would encourage you to look out for our apps when they finally appear, as they will significantly lower the barriers to trying things for yourself. Moreove...
by therealdavidp
Wed Nov 18, 2020 10:03 pm
Forum: Camera board
Topic: libcamera C++ API
Replies: 27
Views: 1124

Re: libcamera C++ API

I have just taken over and recompiled libcamera (tips increase swapsize=2048 otherwise that hangs) First remark after the disappearance of the EventDispatcher it becomes more difficult to create a basic application. I had to take an EventLoop from the cam application and link with libevent pthreads...
by therealdavidp
Thu Nov 12, 2020 4:37 pm
Forum: Camera board
Topic: libcamera C++ API
Replies: 27
Views: 1124

Re: libcamera C++ API

Yes, digital zoom works the same way. The output image size is fixed. If what you get from the sensor is larger, then it gets downscaled. If you specify a ScalerCrop that is smaller then it gets upscaled. One thing to note is that libcamera chooses that camera mode for you and doesn't, so far as I k...
by therealdavidp
Thu Nov 12, 2020 2:13 pm
Forum: Camera board
Topic: libcamera C++ API
Replies: 27
Views: 1124

Re: libcamera C++ API

I think I answered the question about AeLocked previous (wait for the updates to come with our libcamera apps). As regards ScalerCrop, it's defined relative to the sensor active area, and there's a ScalerCropMaximum property that tells you the portion of the sensor within which you can pan/zoom. So ...
by therealdavidp
Thu Nov 12, 2020 11:08 am
Forum: Camera board
Topic: libcamera C++ API
Replies: 27
Views: 1124

Re: libcamera C++ API

Hi again Thanks for the extra info. One thing to add is that there's quite a lot of work going on in this area, and we'll be committing all that prior to our release of the new libcamera versions of raspistill/vid. I'll comment on some of that in the discussion below. Thanks for your response, so le...
by therealdavidp
Tue Nov 10, 2020 3:34 pm
Forum: Camera board
Topic: libcamera C++ API
Replies: 27
Views: 1124

Re: libcamera C++ API

Thanks for the feedback. Perhaps I can ask for a little more information on some of this so that we can get these things right? Now i tried to play with controls (in viewfinder role) and one of the most important the exposure Without any control, simple-cam gives me a fluctuating exposure time which...
by therealdavidp
Mon Nov 09, 2020 2:21 pm
Forum: Camera board
Topic: WhiteBalance Problem(too purple)
Replies: 9
Views: 299

Re: WhiteBalance Problem(too purple)

Ah, are we saying this *is* a NoIR sensor? I must confess that wasn't entirely clear to me. There are quite a few threads that have discussed this, such as: viewtopic.php?f=43&t=245994 . Hopefully that will be helpful!
by therealdavidp
Mon Nov 09, 2020 10:04 am
Forum: Camera board
Topic: V2 Camera Module RGB format color space
Replies: 2
Views: 144

Re: V2 Camera Module RGB format color space

I think treat them as sRGB.
by therealdavidp
Mon Nov 09, 2020 9:53 am
Forum: Camera board
Topic: WhiteBalance Problem(too purple)
Replies: 9
Views: 299

Re: WhiteBalance Problem(too purple)

I attached pic which is taken at around 3 PM. this is taken in a around vehicle's room lamp from top to bottom. and I use pi camera G type which doesn't have NoIR Sensor. Thanks for the image. However, if you were able to capture a jpeg+raw ("raspistill -r -o test.jpg") we'd be able to get a lot mo...
by therealdavidp
Mon Nov 09, 2020 7:51 am
Forum: Camera board
Topic: WhiteBalance Problem(too purple)
Replies: 9
Views: 299

Re: WhiteBalance Problem(too purple)

Hi

It would help if you could provide a link to a jpeg+raw version of your image (capture with "raspistill -r -o test.jpg"), plus a discription of the conditions and the lighting being used. I was also not quite clear which sensor you are using and whether it's a NoIR sensor. Thanks!
by therealdavidp
Sat Nov 07, 2020 12:38 pm
Forum: Camera board
Topic: libcamera C++ API
Replies: 27
Views: 1124

Re: libcamera C++ API

Thanks for the info on StreamRole::StillCapture. Changing that causes it to allocate a different number of buffers and it seems like that's the crucial difference. For StreamRole::Viewfinder I think it normally allocates 4 sets of buffers which keeps the pipeline happily fed, but for StreamRole::Sti...
by therealdavidp
Fri Nov 06, 2020 6:26 pm
Forum: Camera board
Topic: libcamera C++ API
Replies: 27
Views: 1124

Re: libcamera C++ API

Hi So I've just tried exactly this. I'm running simple-cam with no modifications whatsoever. The usual homilies about updating software (including "sudo rpi-update") apply. Here's what I got: [0:02:03.246035372] [1391] ERROR IPAModule ipa_module.cpp:293 ipa_dummy.so: IPA module has no valid info [0:...
by therealdavidp
Fri Nov 06, 2020 9:45 am
Forum: Camera board
Topic: Black signal - raspistill, raspiraw or libcamera (-still)
Replies: 2
Views: 130

Re: Black signal - raspistill, raspiraw or libcamera (-still)

Hi The "official" black level value for the imx219 is 64 out of a maximum of 1023 (i.e. the sensor running in a 10-bit mode). It is of course not unknown for there to be some variation here, such as with temperature, and so forth. Both raspistill (with -r) and raspiraw should give you the same raw d...
by therealdavidp
Thu Nov 05, 2020 10:37 am
Forum: Camera board
Topic: Libcamera, HQ and Zero
Replies: 15
Views: 895

Re: Libcamera, HQ and Zero

So they do use the same hardware block to fix the lens shading, however, the code that's filling in the parameters is completely different. Using the proprietary "raspicam" stack you can supply your own custom tables, though you have to fill them with your own numbers. In the libcamera world the len...
by therealdavidp
Wed Nov 04, 2020 9:29 am
Forum: Camera board
Topic: Libcamera, HQ and Zero
Replies: 15
Views: 895

Re: Libcamera, HQ and Zero

So I'm not sure if I'm totally the best person to give you advice on qcam, but here are some suggestions. To understand qcam, I'd probably start with the MainWindow::startCapture method in libcamera/src/qcam/main_window.cpp. In there you'll see it call validate() and configure() methods, which check...
by therealdavidp
Tue Nov 03, 2020 1:56 pm
Forum: Camera board
Topic: STICKY: libcamera - open source camera stack
Replies: 103
Views: 12845

Re: STICKY: libcamera - open source camera stack

Hi again

Yes, in the libcamera world this will be up to the application. However, as I think I said elsewhere, we are going to be rolling out libcamera versions of raspistill and raspivid ("libcamera-still" and "libcamera-vid") that will do exactly this.
by therealdavidp
Tue Nov 03, 2020 8:21 am
Forum: Camera board
Topic: Official V4L2 driver
Replies: 565
Views: 530308

Re: Official V4L2 driver

Hi I wasn't totally sure I understood exactly what you were asking, but I'll try to answer at least in relation to libcamera. I'll refer to some of the source code for their qcam demo application. Libcamera works by having the application submits "requests" for images (the Camera::queueRequest metho...
by therealdavidp
Tue Nov 03, 2020 8:06 am
Forum: Camera board
Topic: Libcamera, HQ and Zero
Replies: 15
Views: 895

Re: Libcamera, HQ and Zero

Hi If memory serves me correctly, qcam runs the camera with a "viewfinder" stream and will only capture those images. You can ask it for different sizes ("qcam -s width=xxx,height=yyy") though it may be a struggle to get those numbers all the way up to full resolution without attacking the source co...
by therealdavidp
Sat Oct 17, 2020 12:17 pm
Forum: Camera board
Topic: Camera v2.1 blurry after going from PI 3 to PI 4
Replies: 7
Views: 399

Re: Camera v2.1 blurry after going from PI 3 to PI 4

Hi So neither the Pi 3 nor the Pi 4 have any means of altering the focus of the lens at all (the only way is to adjust it manually), and the imaging related hardware and software is identical on both (with only very minor disclaimers). The most likely explanation, I'd have thought, is that the lens ...
by therealdavidp
Sat Oct 10, 2020 9:28 am
Forum: Camera board
Topic: Banding + How to properly process Bayer data?
Replies: 5
Views: 329

Re: Banding + How to properly process Bayer data?

Hi In case you haven't seen it, this post may be of interest to you: https://www.raspberrypi.org/blog/processing-raw-image-files-from-a-raspberry-pi-high-quality-camera/ It shows how to turn the jpg+raw into a DNG with correct colour balance and colour matrices. You can run that through "dcraw -w" o...

Go to advanced search