hey,
i am doing my vision processing on my raspberry pie3 and using OpenCV
i want to stream the video after i processed each frame how can i do such thing
in python and using CsCore if someone could provide a simple example and instructions
on how to install CsCore for python would be very nice
best regards
shadi
#!/usr/bin/env python3
#
# This is a demo program showing CameraServer usage with OpenCV to do image
# processing. The image is acquired from the USB camera, then a rectangle
# is put on the image and sent to the dashboard. OpenCV has many methods
# for different types of processing.
#
# Warning: If you're using this with a python-based robot, do not run this
# in the same program as your robot code!
#
import cv2
import numpy as np
from cscore import CameraServer
def main():
cs = CameraServer.getInstance()
cs.enableLogging()
This file has been truncated. show original
robotpy-cscore is already installed on the FRCVision Pi image, which I would seriously encourage you use instead of trying to set it up yourself.
1 Like
how can i use it with opencv?
can you send an example of how i can give it input of frames?
system
Closed
February 24, 2020, 1:08pm
6
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.