Navigation

    VEYE IMAGING Forum

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

    veyeuser

    @veyeuser

    0
    Reputation
    1
    Profile views
    4
    Posts
    0
    Followers
    0
    Following
    Joined Last Online
    Email 1273739552@qq.com

    veyeuser Follow

    Latest posts made by veyeuser

    • imx335无法在2560x1440 下进行预览

      imx335无法在2560x1440 下进行预览
      我使用jetson tx2 nx
      第一步是使用脚本配置videomode
      ./veye5_mipi_i2c.sh -w -f videomode -p1 4 -b 9
      第二步
      v4l2-ctl -d /dev/video0 --set-ctrl preferred_stride=5120
      第三步
      gst-launch-1.0 nvv4l2camerasrc device=/dev/video0 ! "video/x-raw(memory:NVMM), width=(int)2560, height=(int)1440" ! nvvidconv ! "video/x-raw(memory:NVMM),format=(string)I420" ! nv3dsink sync=false

      结果不是打摄像头,而是对桌面进行截屏。
      第三步是根据 2592x1944@20fps模式预览 的部分进行改写,只改变width和height。
      但是如果将第三步换成 2560x1440 的录像和抓拍,能够成功执行和生成视频文件和图像文件。
      请问 imx335 在videomode 3/4 情况下能否进行预览。

      posted in CS MIPI camera
      V
      veyeuser
    • imx335能够支持gstreamer和v4l2的视频流开发吗?

      imx335能够支持gstreamer和v4l2的视频流开发吗?

      1. 能够使用gstreamer或者v4l2的videodev2.h 对imx335进行摄像头的配置,还是只能通过给的shell脚本来配置。
      2. 能够使用gsteamer或者v4l2将imx335的实时图像呈现在桌面窗口或者是将视频流传输到opencv中。
      posted in CS MIPI camera
      V
      veyeuser
    • RE: imx335的sh脚本不能修改viewmode,

      我用脚本设置了view mode 4 ,但是通过如下代码获取摄像头的设置,发现设置右变回 view mode 1
      //3. set form of acquisition
      struct v4l2_format vfmt;
      // vfmt.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
      // vfmt.fmt.pix.width = 2592;
      // vfmt.fmt.pix.height = 1944;
      // vfmt.fmt.pix.field = V4L2_FIELD_ANY;
      // vfmt.fmt.pix.pixelformat = V4L2_PIX_FMT_UYVY;
      //
      // int ret = ioctl(fd, VIDIOC_S_FMT, &vfmt);
      // if(ret < 0){
      // perror("set form fail!");
      // }
      //
      memset(&vfmt, 0, sizeof(vfmt));
      vfmt.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
      ret = ioctl(fd, VIDIOC_G_FMT, &vfmt);
      if(ret < 0){
      perror("get form fail!");
      }

      printf("width = %d\n", vfmt.fmt.pix.width);
      printf("height = %d\n", vfmt.fmt.pix.height);
      unsigned char *p = (unsigned char *)&vfmt.fmt.pix.pixelformat;
      printf("pixelformat=%c%c%c%c\n", p[0], p[1], p[2], p[3]);
      

      // printf("pixelformat = %d\n", vfmt.fmt.pix.pixelformat);

      posted in CS MIPI camera
      V
      veyeuser
    • imx335的sh脚本不能修改viewmode,

      imx335的sh脚本不能修改viewmode,在python或者cpp中使用videodev2.h头文件和v4l2来设置摄像头,并ioctl的VIDIOC_G_FMT获取height和width时候,发现会变成2592x1944.

      posted in CS MIPI camera
      V
      veyeuser