Forum Replies Created
- June 7, 2021 at 9:01 am in reply to: Segmentation error / Valuerror when using camera.capture #71975
Can we get any update on that problem?
Thanks,May 24, 2021 at 11:42 am in reply to: Segmentation error / Valuerror when using camera.capture #55119
I have exactly the same problem as OP. When I am taking pictures in a loop, I got random a Segmentation fault, which crashes whole script.
How can I prevent that?
I dowloaded 2 days ago your libs, so I presume they are the latest. I have Rpi 4 and using IMX298 camera
I had some time this morning to check a few configurations
Rpi3 with v2.2 adapter and 4x imx298
- modes 0, 1 and 2 from ./capture are working with no problems.
- mode 3 (full res) capture time out or big (30mb) file with random noise.
- When trying to capture image in full res with python script NULL pointer access
Rpi3 with imx298
- modes 0,1,2 and 3 from ./capture are working with no problems
Rpi4 with v2.2 adapter and 4x imx298
- modes 0,1,2 from ./capture are working with no problems
- *mode 3 was producing a bit of noise on camC. A, B and D were fine.
Rpi4 with imx298
- modes 0,1,2 and 3 from ./capture are working with no problems
I swiched cameras in connectors and even swiched cables between them. I could not see any differences so I presume cameras are fine. Especialy when I just connect a camera to Rpi and I am getting normal images in full res. If one of them would be damaged somehow I would not get good results here.
At the end I realised that the only thing I did not change was a ribbon connecting Rpi and adapter. The one I was using was about 15 cm so I changed it into 5cm one. When I started checking cameras I could see improvement for Rpi4.
Rpi4 with v2.2 adapter and 4x imx298 (5cm ribbon RPi<–>adapter)
- modes 0,1,2,3 from ./capture are working with no problems. I did not see any noise when I was capturing images.
Rpi3 with v2.2 adapter and 4x imx298 (5cm ribbon RPi<–>adapter)
- No improvements. Still could not get image in mode3(full res)
So that is me. I am quite happy right now I do not see any noise on the images in full res from Rpi4. However I am a bit afraid i got “lucky” today with camera placement and when I turn on Rpi4 tomorrow I will still get noise on images. Anyway, It would be great guys, if we could have an adapter working with 4 IMX298 cameras in full res on Rpi3 also. I am sure plenty of people is still using them (I am an example).
So you are saying that we can not do anything about this and it will not work properly with RPi4?
I have modified one of yours examples. To activate for instance camera connected to Camera A connector I am running:
import arducam_mipicamera as arducam
import v4l2 #sudo pip install v4l2
import time, os
import RPi.GPIO as gp
if __name__ == “__main__”:
i2c = “i2cset -y 1 0x70 0x00 0x04”
except Exception as e:
And then I am just running example from MIPI_Camera/RPI/opencvGui
I had some time and I have checked adapter on Rpi 3+ B. I did not see any issues there. Image from cameras seemed to be ok. When I got back on RPi4 I got same problems as I described above.
I think last/2 weeks ago we were talking about connecting IMX298 to the Rpi4 when I got some issues with noise. As far as I remember you have slowed down some clocks. Do you think it might be the same issue here?
I forgot to mention that I was using this library but still my Rpi could not see any other i2c address than 0x70. This morning I have did everything one more time from the very beginning and it worked. I have no idea what was wrong but probably it was a mistake on my side inside code.
Unfortunatelly i have a different issue and it looks like it might be a hardware one. From camera connected to Camera C connector, my images have huge amount of noise. I have changed cameras and ribbons to see if one of them was damaged. Did not matter which ribbon or camera I have used, I was always having image with noise. It looks like connector on board might not be soldered “right” but I am not an expert in this matter. If I press the cable gently down at the connector itself, the amount of noise is significantly reduced. I checked a few times if I am connecting cable correctly buy I can not see anything wrong with it…
Is there anything else that I can checked or I should contact your official reseller directly (uctronics) which sold me this adapter?
Thanks,May 20, 2020 at 10:18 am in reply to: Manual awb compensation for Arducam IMX298 MIPI 16MP #22876
I have about 0.2 delay added.
Anyway, your solution works. I have tested it and had no problems at all. Worked on RPi 3 B+ as well as RPi 4 4GB.
Thanks !May 19, 2020 at 6:56 pm in reply to: Manual awb compensation for Arducam IMX298 MIPI 16MP #22822
I have reinstalled Raspbians on my both RPis. On both I have installed Raspbian GNU/Linux 10 (buster) and followed this readme.
I set GPU memory to 250.
- Rpi 4 4GB
On this model I could not get “good” image in full res. (4656 × 3496). Images are full of random noise with pink and green stripes. There is no difference between using c++ or python examples. I was turning awb on, off ect. No change there.
On lower resolutions everything works fine. Unfortunately I was really counting on full res on RPi4. I was hoping to get 4x 16MP cameras and connect them through ArduCAM multiplexer to RPi. I do not care about stereo, but I need 16MP+
- Rpi3 b+
On this model camera seems to work fine. I can get full res images, manual white balance works as well as focus and everything else. However very rarely I got images with random pink stripes but it was only 1 or 2 and I did 150+ still images.
I have checked both RPis with different cameras. I used 5MP, 8MP and everything works fine so I think there is nothing wrong with RPis.
Could you please take a look on that? I am afraid this kind of problem is way above my skills. It looks a bit like there might be just to much data for RPi to read from sensor.
Thanks,May 19, 2020 at 1:28 am in reply to: Manual awb compensation for Arducam IMX298 MIPI 16MP #22788
I got a second so I have connected camera to RPi3.
I can take an image in full res and it does not have easily visible stripes but i can see on image there are some artifacts like black horizontal line.
Also images I am having are green. AWB does not work at all now.
When I am executing preview.py I am having error:
mmal: Failed to set black level – try updating firmware
Is it possible that I have damaged sensor when executing script with manual gains? It was working when I was using c++ so I have no idea what happened here.May 19, 2020 at 1:11 am in reply to: Manual awb compensation for Arducam IMX298 MIPI 16MP #22787
I have followed every step in readme.md so yes. I did everything including installing .so file.
Right now my concern is that I can not get an image in full resolution without green and pink stripes. I will try to test it on different RPI and let you know how it looks like.May 18, 2020 at 10:25 pm in reply to: Manual awb compensation for Arducam IMX298 MIPI 16MP #22757
I have downloaded and installed library as well as rest of the files.
When I ran capture.py to get a photo i got Segmentation Fault and since then I can not get “right images” in full resolution..
In lower resolution image looks alright, but in full it looks like image below. I have deleted MIPI_Camera and cloned it again but it did not help. Could you help me with that?
.May 18, 2020 at 12:17 pm in reply to: Manual awb compensation for Arducam IMX298 MIPI 16MP #22758
I have added an answer a few minutes ago but I do not see it, so I will post answer once again.
I downloaded new lb as well as whole MIPI_Camera and added camera.manual_set_awb_compensation(100, 100).
When I run capture.py I got segmentation fault and since then I can not get “right images” in full res. I deleted whole MIPI_Camera folder and basically clone folder once again buy it did not help.
Could you help me with that?