Capturing single image

  • torchris4 wrote: 2024-03-20 0:24 I have had some success in getting a single image using this command at the command prompt:

    Code: Select all

    v4l2-ctl --device /dev/video11 --set-fmt-video=width=1280,height=720,pixelformat=NV21 --stream-mmap --stream-to=frame2.yuv --stream-count=1
    I can import it into the YUView utility and see the image, but it always seems to come up as black and white. Are there other parameters I should be setting on the command line?

    The SC3336 CSI camera captures images using V4L2 without undergoing ISP algorithm processing. As a result, the displayed image quality suffers in terms of white balance, exposure, and color accuracy. Using a USB camera typically yields better results.

    I recommend utilizing the RKMPI method, which loads ISP algorithms during runtime. This approach provides better image quality compared to V4L2 and better runtime efficiency compared to OpenCV-mobile. Executable programs related to this are available for testing in /oem/usr/bin of the Buildroot file system. Feel free to experiment with them based on your requirements.
  • Perfect, thanks! I will look into that.