Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation on 12/29/23 in all areas

  1. 1 point
    hello all, my colleague has come up with a little python library called stkcam, that can be used to either to see the live preview of the mipi csi camera, or to take a picture with the mipi csi camera pypi: https://pypi.org/project/stkcam/ github: https://github.com/harryliou/stkcam so far it's supported on tinker board (r2.0) & tinker board 2s (debian 10, debian 11) here's a little how-to: ##setting up tinker board/ tinker board 2s use tinker-config to change the csi overlay: sudo tinker-config //select 5 Interfacing Options //select F1 Camera //select 0 IMX219 //or 1 OV5647 for Raspberry Camera V1 //click Ok, finish, and reboot install pip3 for python3 and stkcam: sudo apt get update sudo apt-get upgrade sudo apt-get install python3-pip pip3 install stkcam ##using stkcam for mipi csi camera live preview: python3 import stkcam from stkcam import TKCam, CamType cam = TKCam(CamType.IMX219) cam.preview() **if you'd like to take a photo using the library, please finish the process first -- exiting by ctrl + d twice) ##using stkcam to take a photo with mipi csi camera: python3 import stkcam from stkcam import TKCam, CamType cam = TKCam(CamType.IMX219) cam.take_image('/home/linaro/Desktop/image.jpg') # image path feel free to give it a try and let us know
×
×
  • Create New...