Video streaming from multiple users in Django - python

I am developing an exam platform website where people can create exams and take exams. I almost finished the examination part and wanted to add a proctoring system. I want that when people start any quiz, their video is displayed on the examiner's side. That is, when the users press (ex.) the "Start Quiz" button, their video is turned on. And examiners can watch all the exam passers in some url. I found that I could use OpenCV to do this, but couldn't figure out how to get multiple video sharings from different users. Please suggest me any ideas. What should I learn? Can this be implemented in Django?

Related

I need to hook HTML input into Python and don't know how

I am working on a team project for a capstone course. We have decided to produce a self-hosted calendar app for college students. One team member has created HTML webpages for said self-hosted server. I need to hook button and text box input and output into a python program. We are using Starlette, but I cannot figure out how to get information from text boxes.
To give an example of what I need to do, the user will input information into a selection of text boxes. That info needs to be read and converted into variables, then sent into an SQL statement. I have the SQL done, I just don't know how to read the info from the HTML boxes and detect button input.
Before answering it is necessary to know if you are using a python framework, ideally it would be enough to change the action of the form and connect it with a python function.
Here I leave you a tutorial to clarify a little bit the panorama.
https://www.youtube.com/watch?v=dlhg8HMZTOk

How to code a web page that displays timelapse photos

I´m just learning to code and hoping for some directions to learn more. I have a project where I´m using a Raspberry Pi and a Canon DSL camera to take a photo every 15 minute and then upload the files to dropbox. The files are named like this: Y/M/D-H/M/S.jpg. Folder structure on dropbox: Year/Month/Day.
I now would like to display these photos in a nice way on a web page. I want to show the latest taken photo as the start image. I then want to make a link menu where it is possible to go back in time and see earlier photos. Back/forward button to jump between the 15 minute interval images. Same with year and date, a step up/down in increments navigate a specific year and month.
Im attaching example to a website that displays what I want to achieve. I dont necessarily need it to be as fancy (like the preview image when scrubbing back in time).
What would be a simple way to achieve this. Preferably a technology/language that is well documented as I want to learn and modify. I would not be surprised if someone has already built something similar. Do I need to learn using a database like php/orMysql for this?
Example:
https://longyearbyen.kystnor.no/
enter image description here
I use Gphoto2 in a simple python script to setup the intervals and naming.
I use a curl command to upload to dropbox via custom app.

Trying to use YouTube API to check views of a video every hour. Can Python be used to store the data or is PHP needed?

I apologize if this is a naive question as I'm a learning developer. I'm trying to come up a project to work on in the summer to build my portfolio as a Python developer and as of right now I'm in the planning stages and just want to know if I'm on the right track.
But without going into the specifics, I essentially want to get the meta data from one YouTube video every hour from the time it was uploaded and the current time and make a time vs views/hour plot using the YouTube API and display it on a website
I've looked into webscrapers, but from my understanding, those scripts can only take one instance at a time.
Would I need to learn PHP as well in order to store the data from each instance the API is called? Or is there a way to do what I'm thinking of natively in Python?
If so would I need to know it extensively?
Part 1 - YouTube API only returns a total viewCount. You won't be able to ask for a video's viewCount from 6 hours ago, for example. However, you can call the API every hour for the video viewCount and store the numbers yourself going forward.
Part 2 - PHP vs Python doesn't matter. You can store data with either code.

How so I create a QRCode reader that reads the information and stores it in the database

I'm starting up a new project for an examination attendance that scans the qrcode of the students' identity card which contains the matriculation number and the full name information of the student. Is there a way to go about this because i am going to store the information inside the database and after the lecturer has logged in he scans twice the first time for sign-in and the second time for sign-out which would all be columns on the attendance table. Please what are your recommendations on how i should go about this project?
If you're wanting to recognize the QR code from a camera that's linked to a personal computer (or will be processing captured footage on this computer after the session), you can use OpenCV: https://www.learnopencv.com/opencv-qr-code-scanner-c-and-python/. Since you tagged Django, you'll be able to use python OpenCV to directly send recognition results to the database API.

Python, How to Load Video File on RAM?

Hi is this scenario possible?
In My Server-PC i got this library of movie files,
then
In one of my Client-PC's, They Access or Copy a movie file from the Server-PC BUT stores it only on the RAM/Memory?
If This is possible How can i Read/Open/Play it?
Im trying to make a program (In Python 2.6 with QT) for students in our schools that plays the video, but dont leave a file on their PC's since those Video Material is licensed by the owner. and doesn't want other
school to use it, since's its only made for the school itself.
please im open to any kind of help.
You will get an abundant Audio/Video Resources out in this link. The Particular thing that you wan't to achieve is called Audio/Video Streaming. There are few libraries that provide this functionality one of which is Flumotion. If you have not worked or do not know what Media Streaming is, just fiddle with VLC which provided the same functionality as you are desiring. This will give you an idea what you intend to develop.

Categories

Resources