Hi @veye_xumm ,
All my tests for parameters denoise2d, denoise3d and sharppen already have 0 value.
Also played with all parameters in veye_viewer (very useful app) - no luck
Posts
-
RE: GX-MIPI-IMX662 can't save fps parameter
-
RE: GX-MIPI-IMX662 can't save fps parameter
@veye_xumm
the version is same :rms@raspberrypi10:~/source/raspberrypi_v4l2/gx_i2c_tools $ ./gx_mipi_i2c.sh -r version Read version is C 01.32 and L 01.19Also updated and rebuilt source code - same result (only one difference I see : you are using gx_product_tool folder, for me it is gx_i2c_tools)
We use F0.95 lenses on our cameras and remove the IR-cut filter to capture more starlight. The downside is that we can only achieve perfect focus for either visible or infrared light, though sharp focus is still possible for each individually. In our setup, we compromise by focusing somewhere in between.
We see this exact behavior on our IMX462, IMX462 mono (VEYE), and IMX662 mono (another vendor ) sensors. However, on the color IMX662 sensor, I am unable to get a sharp focus at all. It feels as if the visible light and infrared light from the star interfere with each other simultaneously, making the image constantly blurry.
I thought I could at least use this camera with an IR-cut filter, but for some reason, the stars became extremely dim. I am not sure if this is a software issue, or if the color Starvis 2 sensor simply handles light differently.
See the sample photos below (please note - it is stack of 8 seconds) :
imx662 without IR filter and no focus

imx662 with IR filter and stars extremely dim

and my imx662 mono sensor, without IR filter

-
RE: GX-MIPI-IMX662 can't save fps parameter
@veye_xumm yes, I want to verify camera sensors but this command doesn't work for me, that is why I asked example.
$ sudo ./gx_mipi_i2c.sh -r snsreg 0x3070 -b 6 Read Sensor Reg 0x3070, val=0xffffffffffffffffUnfortunately, my night sky tests failed:
-
Without an IR filter, I can't get the stars into focus for some reason—they are always blurry and haloed.
-
With an IR filter, the stars are in focus but they become extremely dim.
I'll probably stick with the old IMX462 sensor for my projects.
-
-
RE: GX-MIPI-IMX662 can't save fps parameter
Hi @veye_xumm,
Thank you for new update and letting me know!On first look - the original issue was fixed - now I can save fps parameter and we could close this topic.
About night sky image, I don't see visible differences and want to play with parameters one more time and monitor camera registers.
I see was added new feature:
./gx_mipi_i2c.sh -r snsreg [sensor reg addr] -b your_i2c_bus_numberI tried check sensor gain (register 0x3070) but not sure what should be reg address, tried 0x3070 and 0x70 (seems like it is expecting value less than 0x100)
if you could provide example - it would be helpful
Thanks
-
RE: GX-MIPI-IMX662 can't save fps parameter
Hi @veye_xumm, I'm still trying to configure imx662 for night capturing (meteor detection) and probably you can help me to clarify what is wrong.
I have several cameras from VEYE (imx462 and imx462 mono) and also imx662 mono from another vendor.
And for all cameras configuration pretty same - use 30fps, exposure time 33333 and gain 30Db for mono version and up to 34Db color version (this range approximately within analog gain).
What I see in GX imx662 - for same parameters image too dark, some brightness I can get from gamma_index (with value 5 or 10) but it still not enough
To get required brightness of image I have to increase gain to 45 which leads to boost digital gain and as result more noise, more hot pixels and overbrighted (oversized) stars.
Questions:
- What could be wrong? (imx662 mono works as expected, not sure it is sensor issue)
- Can I read sensor registors same as on imx462?
My current config (Raspberry Pi 5, Trixie) :
./gx_mipi_i2c.sh -w fps 30 -b $i2cBus ./gx_mipi_i2c.sh -w expmode 0 -b $i2cBus ./gx_mipi_i2c.sh -w metime 33333 -b $i2cBus ./gx_mipi_i2c.sh -w mgain 34 -b $i2cBus ./gx_mipi_i2c.sh -w denoise_strength_3D 0 -b $i2cBus ./gx_mipi_i2c.sh -w denoise_strength_2D 0 -b $i2cBus ./gx_mipi_i2c.sh -w sharppen 30 -b $i2cBus ./gx_mipi_i2c.sh -w gamma_index 5 -b $i2cBus ./gx_mipi_i2c.sh -w daynightmode 1 -b $i2cBusExample of image in same time and same parameters (gain 34) for:
GX IMX662

VEYE IMX462

-
RE: GX-MIPI-IMX662 can't save fps parameter
Hi @veye_xumm, I didn't say that this is issue, this parameter needs to be changed only in case video recording of the night sky (meteor detection)
From issues what I noticed:
-
can't save fps - always 60 after power on
-
Sometimes saved parameters resets to default (noticed when set metime to 33333 but forgot set fps 30 before) and manual expmode switched back to auto
-
-
RE: GX-MIPI-IMX662 can't save fps parameter
@veye_xumm found what was wrong,
high level of noise produced gamma_index = 1 (default value), other looks good. -
RE: GX-MIPI-IMX662 can't save fps parameter
@veye_xumm yes, you are right, I checked image in 25 and 26 dB - and it is switching.
Probably I used high digital gain (because brightness low than from IMX462 in same gain value) and it produces high level of noise.
About denoise, in IMX462 I'm using 0x02, but not sure what is MIDDLE value, because in IMX662 denoise_strength_3D with 128 produces different picture and I decreased to 40 to have something similar
0x02 NR 2D Mode = OFF; NR 3D Mode = MIDDLEWill test couple nights. Thank you.
-
RE: RAW-MIPI-SC132M camera working in raspberry pi 5. Cannot be configured to work with the libcamera2 and opencv libraries
@sheko
As I see your standard camera parameters are: 1080x1280 120fps
And as it configured in python script for first step try:cap = cv2.VideoCapture('v4l2src device=/dev/video0')if still failing try with passing parameters to gstreamer:
cap = cv2.VideoCapture('v4l2src device=/dev/video0 ! video/x-raw,format=UYVY, width=1080, height=1280,framerate=120/1 ! videoconvert ! video/x-raw,format=GRAY8 ! appsink sync=1')or from command line to check if gstreamer works without python
gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw,format=UYVY, width=1080, height=1280,framerate=120/1 ! videoconvert ! video/x-raw,format=GRAY8 ! appsink sync=1if still failing try RAW8 format
gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw,format=RAW8, width=1080, height=1280,framerate=120/1 ! appsink sync=1if still failing, can't help, I don't have this sensor.
-
RE: GX-MIPI-IMX662 can't save fps parameter
@veye_xumm happy holidays!
Yes, I tried manual and auto gain/expmode and it works as expected.For meteors detection I don't need use denoise3d (or use small value ), as it blurs fast moving objects, but without it the image very noisy, which is probably related to HCG and LCG modes of sensor (as it was for my IMX462M camera and you provided custom firmware with enabled HCG), and it is working perfectly on VEYE IMX462 cameras.
For now it has quality of usual IP camera with same sensor (with denoise3d for night sky), will wait, probably it will be improved in future.
Thank you! -
RE: RAW-MIPI-SC132M camera working in raspberry pi 5. Cannot be configured to work with the libcamera2 and opencv libraries
@sheko please update pipeline with your camera parameters (width, height, framerate). I just copied mine.
-
RE: RAW-MIPI-SC132M camera working in raspberry pi 5. Cannot be configured to work with the libcamera2 and opencv libraries
@sheko
This is pipeline which need place to openCV instead:cap = cv2.VideoCapture('/dev/video0')to run it from command line you need use gstreamer, try :
gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw,format=UYVY, width=1920, height=1080,framerate=30/1 ! videoconvert ! video/x-raw,format=GRAY8 ! appsink sync=1 -
RE: RAW-MIPI-SC132M camera working in raspberry pi 5. Cannot be configured to work with the libcamera2 and opencv libraries
Hi @veye_xumm, sorry for confusion, in previous time you guided me to install custom libcamera for veye_mvcam driver and seems like this step is outdated (but I'm still using libcamera).
@Sheko try another pipeline in openCV:
v4l2src device=/dev/video0 ! video/x-raw,format=UYVY, width=1920, height=1080,framerate=30/1 ! videoconvert ! video/x-raw,format=GRAY8 ! appsink sync=1 -
RE: RAW-MIPI-SC132M camera working in raspberry pi 5. Cannot be configured to work with the libcamera2 and opencv libraries
Hi @sheko, I had same problem with RPi 5, did you build and install libcamera from veye github repository? For some reason it has config json file only for RPi 4.
First step try run it with uncalibrated json :
rpicam-still --tuning-file /usr/local/share/libcamera/ipa/rpi/pisp/data/uncalibrated.json -t 0Path may be different, if failed to load json file - try to find valid path.
if video opened - we need just put to same folder mvcam_mono.json (or add to libcamera source code, update meson.build and rebuild + reinstall )
and check if rpicam-hello or rpicam-still works without tuning file
I attached my current config (rename it to json) but it adopted for night sky and you need fix in json file section : exposure_modes . normal, copy it for example from se327m12.json
mvcam_mono.txt -
RE: GX-MIPI-IMX662 can't save fps parameter
Hi @veye_xumm, I'm already on the latest version of firmware:
$ ./gx_mipi_i2c.sh -r version -b 4 Read version is C 01.14 and L 01.11Anyway it is not critical issue for me.
I'm trying this new GX-MIPI-IMX662 as improved version of VEYE-MIPI-IMX462 for meteors detection and can't configure with same way.If turn off denoise_strength_3D the video image is very noisy and as in gx_mipi_i2c no feature to read sensor registers, can I ask to you confirm that:
In low light environment ISP enables HCG mode (register FDG_SEL0 0x3030 sets to 0x01) ?Maybe you have other recommendations like for IMX462 in this post :
VEYE-MIPI-IMX462 - manual gain not consistent -
RE: RAW-MIPI-SC132M camera working in raspberry pi 5. Cannot be configured to work with the libcamera2 and opencv libraries
Hi @sheko, I have another mono camera but probably it should be same.
I suppose camera visible by libcamera (should work something like rpicam-hello ).
And according to the error log your openCV uses Gstreamer as backend. Libcamera has plugin for Gstreamer : libcamerasrc and my pipeline looks like:libcamerasrc camera-name="/base/axi/pcie@120000/rp1/i2c@88000/veyemvcam@3b" ! video/x-raw, width=1920, height=1080, framerate=30/1, format=UYVY ! videoconvert ! video/x-raw,format=GRAY8 ! appsink sync=1You need just set your camera path (according to mipi port it could be i2c@88000 or i2c@80000 ) , set your camera settings (resolution, format, fps) and remove convert to GREY8 if need color image.
-
RE: GX-MIPI-IMX662 can't save fps parameter
Hi @veye_xumm , thank you for answer, let me clarify my steps.
- Boot raspberry pi 5
- check current fps (it is 60):
$ ./gx_mipi_i2c.sh -r fps -b 4 Read FrameRate_Ex is 60.0000 fps- set current fps
$ ./gx_mipi_i2c.sh -w fps 30 -b 4 Write FrameRate_Ex is 30.0000 fps- check if it is set:
$ ./gx_mipi_i2c.sh -r fps -b 4 Read FrameRate_Ex is 30.0000 fps- Video opened with with 30fps correctly
- save parameters to flash
$./gx_mipi_i2c.sh -w paramsave -b 4 all param saved to flash7 . Reboot raspberry pi
8. check current fps (it is 60 again):$ ./gx_mipi_i2c.sh -r fps -b 4 Read FrameRate_Ex is 60.0000 fps -
GX-MIPI-IMX662 can't save fps parameter
Hi,
On my new camera GX-MIPI-IMX662 I'm trying to set fps parameter (via gx_mipi_i2c.sh from 60 to 30) and save to flash by paramsave and it is working only for current session and after restart it restored back to 60 again.How to fix it?
-
RE: IMX462M pixelformat on RPi5
@alex_ai said in IMX462M pixelformat on RPi5:
I need wait for clear sky to test and provide feedback
Finally tested, for gain value 20 it is looks pretty same with color sensor with ISP, but background no so black as for color sensor.
For me this issue resolved, attached examples to compare (10 seconds stacks)IMX462 mono

IMX462 color with ISP

-
RE: IMX462M pixelformat on RPi5
@veye_xumm
Yes, version is 1.09 after upgrade
