Navigation

    VEYE IMAGING Forum

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

    Posts made by barbanevosa

    • V4l2 capture by OpenCV doesn't work for IMX462

      I use VEYE-MIPI-IMX462 with RPI 3B+ (bullsye, 5.10.92-v7+). Kernel module veyecam2m is installed. V4l2 preview by VLC player and GStreamer works fine.
      When I tried to read from Python script by OpenCV with cv.VideoCapture() no frames captured (cv.VideoCapture.isOpened() returns False). I've tried to downgrade the kernel to v5.10.17 and use previous veye327 module but this hasn't solved the problem.

      import cv2 as cv
      
      
      cap = cv.VideoCapture(0)
      print(cap.isOpened())
      
      while cv.waitKey(10) != 27:
          ret, img = cap.read()
          cv.imshow("video", img)
      
      cap.release()
      cv.destroyAllWindows()
      

      How to capture video by OpenCV and v4l2 for IMX462? And why it works fine with VLC and doesn't work with Python + OpenCV?

      posted in VEYE MIPI camera
      B
      barbanevosa
    • RE: Load libdmipicam fail.

      From Python:

      from ctypes import *
      cdll.LoadLibrary("libdmipicam.so")

      =============================
      Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "/usr/lib/python3.9/ctypes/init.py", line 452, in LoadLibrary
      return self._dlltype(name)
      File "/usr/lib/python3.9/ctypes/init.py", line 374, in init
      self._handle = _dlopen(self._name, mode)
      OSError: /lib/libdmipicam.so: undefined symbol: mmal_log_category

      posted in VEYE MIPI camera
      B
      barbanevosa
    • Load libdmipicam fail.

      I try to use VEYE-MIPI-IMX462 with RPI 3B+ (bullsye, x32). Unfortunately v4l2 rendering was too laggy (I hope to resume experiments with it later), so I use the legacy library. veye_raspipreview works pretty good.
      I followed the instruction and build libdmipicam (no errors, only warnings), install it with 644 into /usr/lib. But when I tried python_demo/preview.py I get Load libdmipicam fail. I tried different versions of libdmipicam.so - bundled and compiled - the same result.
      Please, help me with that problem.

      posted in VEYE MIPI camera
      B
      barbanevosa