Kivy Video class rtsp stream not working on other pc - python

I have created an app that displays rtsp streams in Kivy grid view. It works just fine on my computer, but when I deploy it to another PC everything works up until the video needs to be playing in the grid (i just get white squares in the lower left of the tile). I strongly feel that there is a package I need to download that Kivy Documentation does not mention.
I have pip installed all kivy dependencies, Cython, and Pillow on the other PC.
I would like to see video in each block as I do on the PC that I built the app on
No RTSP Stream Coming Through
***Update: (On the other PC (mini PC)) I uninstalled Python 3.7.3, reinstalled it, installed kivy in the proper order according to their install for windows documentation, and installed Cython. This got it working but now some the text is missing in the app. Also, I am getting multiple .dll errors (libopus-0.dll and libgstopus.dll) I tried removing gstreamer from the python share folder and that got it back to just showing white boxes.

Related

Is it possible to disable autofocus of a webcam on Windows 10?

I am working with python opencv and I am not able to disable autofocus, autoexposure etc on windows 10.
I am using Logitech BRIO 4k webcam.
Everything works perfectly on Ubuntu 18.04. With Opencv 3.4.4 using v4l backend I am able to set focus, exposure, video resolution successfully. However the same code doesn't work on windows
on windows I have tried:
Unofficial pre-built OpenCV packages for Python: opencv-contrib-python https://pypi.org/project/opencv-contrib-python/
build from source opencv 3.4.3 with MSMF, VFW, DSHOW backends.
With VFW I am not able to open video capture at all
build from source opencv 4.1 with MSMF, DSHOW backends
in every case above (except VFW backend) I am able to use opencv functionality, read and show frames from a webcam, but not able to disable autofocus.
code that I use from official opencv GitHub repo https://github.com/opencv/opencv/blob/master/samples/python/video_v4l2.py
I create video capture like so to specify backend VideoCapture(0 + BACKEND_ID) where BACKEND_ID is taken from here
https://docs.opencv.org/3.4.3/d4/d15/group__videoio__flags__base.html
Environmental variable OPENCV_VIDEOIO_DEBUG=True
confirms that I use particular backend
Questions on the same topic without answers Disable webcam's autofocus in Windows using opencv-python
cap.set( cv.CAP_PROP_SETTINGS, 1 );
doesn't work on both windows and linux
Since the code works on linux I believe that the problem is in the videoio backend. Can you suggest some other backend or maybe v4l analog on windows that opencv supports.
Forgot to mention, I was using virtual box to run on windows.
If I run the same code on windows machine directly everything works))
Must be some problem with virtual box
The only difference is that focus values seem to be in range 0-255. But in the sample code I provided above they are in 0-100 range

Access Webcam in Jupyter Notebook on Xilinx Pynq FPGA

Hey guys I want to get the live video frames from my usb webcam connected to my Pynq FPGA. The goal is to make motion detection on each frame but I've been struggling to get a live video. I've tried the first example in this link but I get a really bad frame rate. I tried to get a better rate by adding the following line:vc.set(cv2.CAP_PROP_FPS, 60) but it didn't change anything. I tried an example in MATLAB and I had no problems connecting to the webcam and I had a smooth frame rate.
I've read that OpenCV can't be used together with Python3 yet but I still get images in the notebook what I don't understand. I also don't know how to install other packages or libraries like pygame for jupyter notebooks on the pynq, it says everywhere that I have to enter pip install "name" and put the library in the site-packages directory but I haven't seen that directory on jupyter notebooks. So I'm trying to find a way without installing new libraries.
I really need your help guys, do you have some suggestions how to get a live video stream from my webcam on jupyter notebooks?
OpenCV can work with python3. I am using that
at first you need to install pip, it is pretty easy flow.
After that connect the board to the web and use pip install

Raspbian Jessie (RPI3) boot options not launching Desktop

I'm trying to connect raspberry pi with MatLab. I use the toolbox within matlab to configure raspberry pi. It automatically connects through network however it also gives you OS within that setup procedure, you can't connect to raspberry pi without it. Although the system it gives is technically Raspbian Jessie it comes with limited package.
When it launches and I input dir into console it only shows files such as: satkin_ws install ros_indigo.sh install_ros_package.sh and ros_catkin_ws. No other folders or files are pre-loaded onto the system. I tried to install some packages for display manager such as gdm3 and lightdm but I still have a problem with loading desktop environment. Can someone give me suggestions on how to resolve this issue?
Alright after doing some research I found that the system installed by Matlab is Raspbian Jessie Lite which does not come with GUI/Desktop environment by default but you can install it you want. Here is the link to get you going:
https://www.raspberrypi.org/forums/viewtopic.php?f=66&t=133691

libusb installed- but pyUSB backend not found

I am trying to design a GUI using wxGlade for a USB device. The pyUSB portion of the code has been added to the python code generated by Glade.
However, there is an error. 'No backend available'
This is is response to using a function usbDev = usb.core.find(idVendor = 0xfffe, idProduct = 0x0001)
I have already installed libusb-win32 and still it doesn't work. I restarted the PC once, but to no avail. Kindly help.
I had the same problem too.
Then, I tried ActivePython2.7.x.x
Link->http://www.activestate.com/activepython/downloads
Download the 2.7.x.x 32-bit version. The 64-bit version doesn't allow the installation of pyusb!
Then install pyusb and proceed.
Works fine.

Making pygtksourceview work in windows

So, I'm trying to get gtksourceview python bindings work under windows (I'm developing a cross platform gtk application that shows code, so gtksourceview seemed like a natural choice).
I have pygtk installed and working (I followed the instructions in http://www.pygtk.org/downloads.html)
I tried the instructions in http://projects.gnome.org/gtksourceview/ for gtksourceview.
Here is what I did:
Downloaded and extracted the latest gtksourceview window binaries from: http://ftp.gnome.org/pub/gnome/binaries/win32/gtksourceview/2.10/gtksourceview-2.10.0.zip
The website said gtksourceview needs libxml, so I downloaded and extracted the latest libxml window binaries from:
http://xmlsoft.org/sources/win32/libxml2-2.7.6.win32.zip
Added the folders containing dll files to the PATH (in my computer they were c:\opt\gtksourceview\bin; C:\opt\libxml2-2.7.6.win32\bin)
Installed pygtksourceview with the windows installer:
http://ftp.gnome.org/pub/gnome/binaries/win32/pygtksourceview/2.10/pygtksourceview-2.10.0.win32-py2.6.exe
Renamed the file libxml2.dll to libxml2-2.dll (after running depends on the gtksourceview dll)
Now, the gtksouceview widget seems to work, until I'm trying to set the code's language. When I do that python crashes.
Here is how I crash it in the console (the simplest way i could come up with):
>>>import gtksourceview2
>>>lang = gtksourceview2.language_manager_get_default().get_language('cpp')
>>>lang.get_style_ids()
I'm hoping I'm not the first person to use gtksourceview in python on windows. Any ideas what I should try?
So in case anyone else is wondering -- I grabbed the wrong libxml dll. The right one is in:
http://ftp.gnome.org/pub/GNOME/binaries/win32/dependencies/libxml2_2.7.7-1_win32.zip

Categories

Resources