Real-Time Object Detection and Webcam Live Streaming on Raspberry Pi

If you’ve got an old USB webcam lying around and a Raspberry Pi collecting dust, here’s the perfect weekend project: turn them into a real-time object detection and web livestream system using Python, OpenCV, and the powerful YOLOv8 model!

This project is lightweight, beginner-friendly, and completely open-source. You can find the full code on GitHub here: Webcam-Livestream Repository

What You’ll Need

  • Raspberry Pi (any model with a USB port, but Pi 4 is ideal)
  • A USB webcam
  • MicroSD card with Raspberry Pi OS
  • Basic knowledge of Python

What This Project Does

This project allows you to:

  1. Capture video from a USB webcam in real-time.
  2. Detect objects in the video feed using YOLOv8 (a fast, accurate deep learning model).
  3. Serve the processed video stream to a browser using a lightweight web server.
  4. View it all live from your local network!

What This Project Does

This project allows you to:

  1. Capture video from a USB webcam in real-time.
  2. Detect objects in the video feed using YOLOv8 (a fast, accurate deep learning model).
  3. Serve the processed video stream to a browser using a lightweight web server.
  4. View it all live from your local network!

Under the Hood

Here’s how it works:

1. Real-Time Video with OpenCV

OpenCV grabs frames from your USB webcam and sends them for processing.

cap = cv2.VideoCapture(0)
ret, frame = cap.read()

2. YOLOv8 for Object Detection

I’m using the Ultralytics YOLOv8n model—it’s compact and fast enough for Raspberry Pi:

from ultralytics import YOLO
model = YOLO("yolov8n.pt")
results = model(frame)

3. Annotate and Stream

Bounding boxes are drawn on the frame, and the output is streamed using Python’s aiohttp server.

cv2.rectangle(...)
web.Response(body=jpeg_frame, content_type="image/jpeg")

For full detailed project: https://github.com/nickdu088/Webcam-Livestream

If you build something with it, let me know or contribute to the repo!

Directly Download Apk from Google Play Store on PC/Mobile

Website #1. Evozi Apk Downloader

Website #2. ApkLeecher.com

Website #3.  Downloader-Apk.com

Website #4. Apk-Freedownload.com
Thanks albertine samy!
Website #5. apkappownload.com


Two more new website added:

Website #6. Apk-Dl.com

Website #7. Apkpure.com

Thanks Abi!

Website #8. APKMirror.com

Website #9. APKMonk.com

How to get 1080p in Youtube’s HTML5 player in Firefox

Recently, I updated my Firefox browser, and when I was watching Youtube, I couldn’t get 1080p HD anymore. 🙁

I found this article and it solved my issue. Let me remember these steps just in case in future it happened again.

  1. Enter
     about:config

    in your address bar to get to the advanced configuration page. Click “I’ll be careful, I promise” (and actually be careful because you can break all sorts of things in there if you’re not!) to continue.

  2. Search
    "mediasource"

    to see the options you need.

  3. Double-click both “media.mediasource.enabled” and “media.mediasource.webm.enabled” in order to change their value to “true”.

Domino’s Pizza $5.95 mobile ordering site exploit

Domino’s Pizza has new mobile ordering site, and any value or traditional pizza only $5.95 each pick up.
This deal is for mobile user only. It will re-direct non-mobile user to normal online ordering site, and the price jumps up to $7.95.

From technical perceptive, how does Domino’s server determine a mobile user? Normally a web request contains “User-Agent” to help web server tell who is visiting. This is a typical example of web request. If we change the “User-Agent” content, we can cheat domino’s web server and order $5.95 pizza.

GET / HTTP/1.1
Host: www.dominos.com.au
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.18) Gecko/20110614 Firefox/3.6.18
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Connection: keep-alive

OK, let’s do it!

  1. Download user agent switcher for your Firefox and install.
  2. Change user agent to iPhone
  3. Star ordering from http://dominos.com.au/mobile.aspx and enjoy $5.95 pizza