How to save a screenshot of the database in Django?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
5 views
Hello! Want to make the app spy Cam for website(for the experience of course). How to do so, the user came to the page, confirmed the use of the camera and she took some pictures. Googled and in response, I flashed Navigator.getUserMedia() from a javascript to a, and from opencvand how can I cross with Django
these pictures got on the serverfor further processing?
by | 5 views

2 Answers

0 like 0 dislike
  1. With the help of a navigator.mediaDevices.getUserMedia() get MediaStream
  2. Output MediaStream in video
  3. Create a canvas and draw on it the current frame of the video
  4. Convert canvas to blob
  5. Create FormData and add a blob
  6. Send FormData ajax request to the server
  7. The server processes the request as a normal file download

PS the Screenshot is called screenshot. The picture was taken the camera - it's not a screenshot.
by
0 like 0 dislike
Om send pictures to the pen API, which you wrote on gange. She accepts and saves the files.
by

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
2 answers
0 like 0 dislike
3 answers
0 like 0 dislike
1 answer
110,608 questions
257,186 answers
0 comments
28,118 users