Stream video from Raspberry Pi 4 while another program uses the pi camera as well - raspberry-pi

I have a raspberry pi 4 with a camera module on it and a pan-tilt hat.
I've made a project which when started, it uses the feed from the RPI camera, detects a face and center around it. If the person moves, the camera tracks him.
When I run the .py file through the terminal, it works.
Now I want to use it with my PC. Therefore, I need to simultaneously run my project in the background AND to steam the feed to my PC somehow.
From the methods I searched online, I saw that it's possible to use flask and get a URL to use as an IP camera.
My question is, is it possible to stream the camera feed while my projects runs and tracks the face?
Thank you.

Related

Getting IP Camera Output to Render on an Object in Unity Game

I'm new to Unity so I don't really have much experience nor knowledge about subject. But I want to make a project that IP Camera will be projected on an object. For example, let's say I want to virtualize my security room. I have 2 security cameras in real life. So I need 2 monitors to show that real time capture in game. I was able to project my own webcam but I don't know how to do it with IP Cameras. I tried WebRTC but it works as exactly opposite of what I want to. Is this possible? Because I still don't know the capabilities of Unity.

Execute Python Script on Motion Eye on event of Motion Detection

I have installed motioneye on a raspberry pi and it's working perfectly (images and videos are recording which I can access through FTP). Motion detection is enabled with a mask.
I have written a .py script that will open a new web browser displaying the streamed video so colleagues around the office can see at a glance who has entered the building (the script works perfectly when exectued in PyCharm)
I have placed the executbale .py file in /home/data/browse.py
However, it doesn't seem to execute when motion has been detected and captured/recorded.
Can anyone help please?

Is there a minimal TV GUI for youtube-dl & omxplayer on the Raspberry Pi?

Here's my issue:
My Raspberry Pi boots to console (Raspbian) and does the following:
- Checks a small Youtube-DL script for new updates to a playlist. If so, it pulls the video and copies it to a folder.
After the video is saved, OMXPlayer plays that video from command line and it works perfectly (on 720p, which is great for my use).
-- That's it. It doesn't do anything else.
Here's the issue. I wanted to create a small GUI where I can scroll through older videos. I don't want to boot to a desktop. I tried an Electron JS app but it creates an entire instance of a web browser - which slows down OMXPlayer for me. I tried to mess around with Python TKinter but it won't let me load the script without first typing "startx" which boots up the Raspbian desktop.
Just want a small GUI (similar to KODI) but without anything else other than videos, and a short interface to scroll through different files.
Any suggestions?

How to capture player moment with webcam and use that as an input in a game?

I want to make a boxing game and move the player with the help of capturing moment of the player by using image processing. I have tried capturing moment in python using OpenCV but how could i use that input in a game environment ?
and which tool i should use for that ??
This is my first question here please cooperate.
Thanks
Just buy a kinect and use Microsoft's SDK. It has skeleton tracking built into it.
As far as game input, you can build standard serial stuff in unity3d in its background scripts. Either implement the camera directly into unity or else create a serial forwarder that runs on the computer, which reads the camera data, processes it, and then streams computed information to unity.

VLC just shows a single picture of the webcam

I would like to show the live video of a Microsoft Studio webcam with a Raspberry Pi. It should be a reading tool for my grandma.
So I tried vlc v4l2:///dev/video0 and I get always just a single picture. After that the system is frozen. You can just plug the power supply out.
I don't know what I'm doing wrong? I also tried a smaller resolution.