Navigation

    VEYE IMAGING Forum

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Recent
    • Popular
    • Users
    • WIKI
    • veye.cc
    1. Home
    2. alex_ai
    3. Posts
    A
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 20
    • Best 0
    • Groups 0

    Posts made by alex_ai

    • 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
      IMX462M_small.jpg

      IMX462 color with ISP
      IMX462C_small.jpg

      posted in Machine Vision camera
      A
      alex_ai
    • RE: IMX462M pixelformat on RPi5

      @veye_xumm
      Yes, version is 1.09 after upgrade
      Screenshot 2024-08-07 at 08.44.51.png

      posted in Machine Vision camera
      A
      alex_ai
    • RE: IMX462M pixelformat on RPi5

      @veye_xumm
      Hi, thank you for firmware update.
      Just to double check, is HCG mode always turn on now?

      Also for register 0x3009 I got value 0xffff instead ox11 but seems like HCG enabled anyway.
      Screenshot 2024-08-06 at 19.45.01.png

      I need wait for clear sky to test and provide feedback

      PS:
      After upgrade at the end it writes: "Failed to write register" message but upgrade done , can I just ignore it?
      Screenshot 2024-08-06 at 19.22.50.png

      posted in Machine Vision camera
      A
      alex_ai
    • RE: IMX462M pixelformat on RPi5

      @veye_xumm
      By the way, I see that I can read registers of camera by snsreg command but can't find how to write.
      Is it possible set register 0x3009 value to 0x11 to enable HCG mode?

      posted in Machine Vision camera
      A
      alex_ai
    • RE: IMX462M pixelformat on RPi5

      @veye_xumm
      With metime and mgain parameters I increased sensitive, but it more noisy than color sensor with ISP, anyway issue with pixel format fixed for me, thank you.

      posted in Machine Vision camera
      A
      alex_ai
    • RE: IMX462M pixelformat on RPi5

      @veye_xumm
      Thanks,  it means only manual gain/exposure mode.

      I have one more question but it is a little bit out of topic.
       
      Yesterday I tried to take pictures of the night sky to compare with 462 color sensor, even with high gain value stars are not bright as for the same parameters on 462 color (but mono should be more sensitive) . It looks like there is no switching between  LCG and HCG modes or I need to tune some other parameters.
      Can you advise what could be tuned for this case?

      posted in Machine Vision camera
      A
      alex_ai
    • RE: IMX462M pixelformat on RPi5

      @veye_xumm
      One more question, I see now all parameters like gain and exposure managed by libcamera software according to json file, Can we use internal camera ISP for it as before?

      posted in Machine Vision camera
      A
      alex_ai
    • RE: IMX462M pixelformat on RPi5

      @veye_xumm
      Hi, I noticed that version of libcamera different on my screenshot (it 0.2.0 but I installed 0.3.0)
      I uninstalled rpicam-apps and rebuild it from source code again and it uses my version of libcamera now.
      if execute rpicam-still -v I have next error:
      Screenshot 2024-07-26 at 09.49.33.png
      In commit I see added json file only to vc4 folder (for RPi4) , can we add it to pisp folder (for RPi5) it should have name : "mvcam_mono.json"? it has different format and can't use same file from vc4.

      Also I managed start video by this command:
      rpicam-still --tuning-file /source/libcamera/src/ipa/rpi/pisp/data/uncalibrated.json -t 0
      and it works!
      Screenshot 2024-07-26 at 10.00.57.png
      But better run it without additional parameters
      Thank you.

      posted in Machine Vision camera
      A
      alex_ai
    • RE: IMX462M pixelformat on RPi5

      @veye_xumm
      Hi, it helped but I had to use 1.0.6 tag of libpisp, with the latest version I had compile errors.
      Now for command : rpicam-hello -v
      I have this error:
      Screenshot 2024-07-25 at 22.39.46.png

      I used set media script before:
      Screenshot 2024-07-25 at 22.42.04.png

      Maybe forgot something else.

      posted in Machine Vision camera
      A
      alex_ai
    • RE: IMX462M pixelformat on RPi5

      @veye_xumm
      Hi, thank you for update.
      I'm stuck with compiling libcamera now, with same error as here : https://github.com/raspberrypi/libcamera/issues/151

      Did not find solution yet, probably need play with source code, will let you know if any updates.

      posted in Machine Vision camera
      A
      alex_ai
    • RE: 树莓派5 一个mipi接口连接相机无法识别问题

      @sqf121
      Hi, I had similar issue with another camera vendor and it was related to overlay file which was from RPi4.

      And fixed by replacing :
      cam0 = <&i2c_frag>, "target:0=",<&i2c_vc>
      to
      cam0 = <&i2c_frag>, "target:0=",<&i2c_csi_dsi0>

      Did you install driver from "release" folder or built it manually from source code?
      if manually you need use dts(dtbo) file from rpi-6.1.y-bookworm folder.

      Correct camera location should be:
      /axi/pcie@120000/rp1/i2c@88000/veyecam2m@3b
      /axi/pcie@120000/rp1/i2c@80000/veyecam2m@3b

      As I see your second camera on ic2@70000 similar as I had with wrong overlay file.

      posted in Raspberry Pi App Software
      A
      alex_ai
    • RE: IMX462M pixelformat on RPi5

      @veye_xumm
      Thank you for documentation, I used wrong algorithm to decode 10 bit packed format.
      According to doc:
      10-bit camera modes pack 4 pixels into 5 bytes. The first 4 bytes contain the 8 most significant bits (MSBs) of each pixel, and the final byte contains the 4 pairs of least significant bits (LSBs).

      I fixed it and can open raw image from python, but anyway need find way how to decode video in real time, because now decode one frame is about 3 seconds.

      Same Image as above:

      correct_decoded.jpg

      posted in Machine Vision camera
      A
      alex_ai
    • RE: IMX462M pixelformat on RPi5

      @alex_ai said in IMX462M pixelformat on RPi5:

      Hi @veye_xumm

      Hi, I managed to decode mipi packed raw format in rawfile_to_opencv_show.py file and seems like problem is not only in pixel format. If you look to image bellow : it has 6 same small areas which overlaps each other
      real_from_raw.jpg

      Also enabled "test image" in camera configuration and it looks similar:

      test_image_from_raw.jpg

      It is most probably driver issue or hardware issue.
      What is else I can try to modify?

      posted in Machine Vision camera
      A
      alex_ai
    • RE: IMX462M pixelformat on RPi5

      Hi @veye_xumm
      I reinstalled driver from fresh sources and updated format to Y10P in media_setting_rpi5.sh.
      Now command : v4l2-ctl -d /dev/video0 --set-fmt-video=width=1920,height=1080,pixelformat='Y10P' --stream-mmap=3 --stream-count=1 --stream-to=y10-1920x1080.raw
      saves file but I can't open it, what application should I use? all my applications which supports raw formats could not recognise this file.

      Also I tried open stream in qv4l2 application, it could open but video image broken

      Screenshot 2024-06-04 at 09.58.17.jpeg

      posted in Machine Vision camera
      A
      alex_ai
    • IMX462M pixelformat on RPi5

      Hi, I'm trying to get image from IMX462M on RPi5.
      Driver Installed, I can use mv_mipi_i2c.sh tool but can't get image.
      According to documentation for v4l2-ctl I should set pixelformat='Y10 ' but seems like v4l2-ctl doesn't support it (returns: The pixelformat 'Y10 ' is invalid) .
      v4l2-ctl --list-formats-ext returns only next supported mono formats:

      Screenshot 2024-06-03 at 21.07.24.png

      with 'Y10P' it returns : VIDIOC_STREAMON returned -1 (Invalid argument)
      Could you please advise how to fix it?

      posted in Machine Vision camera
      A
      alex_ai
    • RE: New Raspberry pi 5 support

      @veye_xumm said in New Raspberry pi 5 support:

      @alex_ai

      @alex_ai said in New Raspberry pi 5 support:

      any chances use configuration script ./veye_mipi_i2c.sh on RPi5?

      No. Just pay attention to i2c bus number.

      I think answer was "yes" but with parameter -b. I could not execute from bin dir because it compiled to another OS, so compile i2c_read, i2c_write from source code fixed my issue.
      @veye_xumm thank you for help and support!

      posted in VEYE MIPI camera
      A
      alex_ai
    • RE: New Raspberry pi 5 support

      @alex_ai said in New Raspberry pi 5 support:

      I managed open stream via gst-launch-1.0 v4l2src ... but my application uses OpenCV it could not open device, @veye_xumm did you try it on RPi5 with python samples?

      In my case OpenCv was without Gstreamer plugin and I had to build it from source code with parameter : -D WITH_GSTREAMER=ON and now issue resolved.
      Also after every RPi restart have to run script: ./media_setting_rpi5.sh veyecam2m

      @veye_xumm any chances use configuration script ./veye_mipi_i2c.sh on RPi5?

      posted in VEYE MIPI camera
      A
      alex_ai
    • RE: New Raspberry pi 5 support

      @alex_ai said in New Raspberry pi 5 support:

      @veye_xumm Hi, Also trying to use IMX462 on RPi5 and after installing drivers it was detected correctly by rpi5 scripts but can't play it by VLC or my program which use setting on RPi4 like this:

      device: v4l2src device=/dev/video0
      

      Could you please advise what I'm doing wrong?

      I managed open stream via gst-launch-1.0 v4l2src ... but my application uses OpenCV it could not open device, @veye_xumm did you try it on RPi5 with python samples?

      posted in VEYE MIPI camera
      A
      alex_ai
    • RE: New Raspberry pi 5 support

      @veye_xumm Hi, Also trying to use IMX462 on RPi5 and after installing drivers it was detected correctly by rpi5 scripts but can't play it by VLC or my program which use setting on RPi4 like this:

      device: v4l2src device=/dev/video0
      

      Could you please advise what I'm doing wrong?

      posted in VEYE MIPI camera
      A
      alex_ai
    • IMX662

      Hi,
      Any plans for MIPI IMX662 module?

      I'm using VEYE-MIPI-IMX462 on raspberry Pi for meteors detection and will be happy to test/compare this new sensor.
      Thanks.

      posted in General Discussion
      A
      alex_ai