Digital zoom in rv1103/rv1106

  • Currently, none of the cameras compatible with the Luckfox Pico support auto-zoom functionality. This typically requires a motor or a special lens, and focusing is usually done by manually twisting the lens.
    If you need digital zoom in software (which achieves magnification through cropping and interpolation without any physical movement of the lens), you will need to implement it by calling the scaling functions provided by the RKMPI library
  • Thank you so much for your reply! So it looks like I need to develop my own app using the RKMPI libraries that will support digital zoom. I also wanted to ask about the cameras—I couldn’t find this on the forum, and I don’t want to create a new thread. The chip and camera documentation states support for 30 fps, but for some reason, right out of the box, I can’t get the advertised 30 fps; in fact, the stream is running at 25 fps. I configured the *.ini file to run at 30 fps, but the stream still runs at 25 fps, even though the metadata shows 30 fps. I checked, and the camera driver supports this mode—why can’t I get the camera to run at 30 fps?

    UPD: I'm using a Luckfox Pico Plus board and an SC3336 sensor.
  • The SC3336 driver's supported_mode offers both 25fps and 30fps modes. The latest SDK defaults to the 30fps mode, whereas older images use 25fps by default. Please try using the latest image before testing.
  • I got the ready-made images from here

    https://wiki.luckfox.com/Luckfox-Pico-P ... ash-image/

    I flashed the images (Ubuntu and Buildroot) via an SD card. The result: on the stream rtsp://localhost:554/live/0 - 25 fps in the metadata and in the actual stream. On the stream rtsp://localhost:554/live/1 - 30 fps in the metadata, but in the actual stream 25 fps (if you count the number of frames over a certain period of time using ffprobe).

    I encountered the same problem when creating my own images using the SDK. Initially, both streams were 25 fps. Then I managed to do this:
    Disable the stream rtsp://localhost:554/live/0 in the config and leave only rtsp://localhost:554/live/1 at 30 fps. Only then could I get 30 fps on the camera. What am I doing wrong?

    My goal is:
    to get one stream with the maximum camera resolution and 30 fps + audio
    to get a second stream with a minimum resolution, preferably 30 fps, without audio.
    And then I want to simultaneously record video from one stream using commands like:
    printf '\x17\x00\x00\x00rk_storage_record_stop\x00' | socat - UNIX-CONNECT:/var/tmp/rkipc

    But I'm having problems with the FPS specifically. I can't get the results I'm looking for. Please help.
  • In rkipc-300w.ini, the fps parameter under isp.0 must also be set to 30; otherwise, it will reduce the sensor's V4L2 vertical_blanking, resulting in a RAW output frame rate of only 25 fps.