liveBook · Manning

Edge computing

As explained in Digital Twins in Action

Edge computing is a computing architecture that processes data near the device or data source rather than exclusively in a remote cloud.

Edge computing processes data on a device or nearby gateway instead of sending every raw input to a remote server or cloud. It complements cloud computing: local processing handles time-sensitive filtering, analytics, inference, and decisions, while selected results can still flow to a digital twin or cloud service. The main gains are lower latency and less data to transmit. section 1.2.2 section 3.4.1

For a video-fed digital twin, choose what crosses the network:

  • Continuous streaming sends the whole feed for monitoring or storage, at high bandwidth and storage cost. section 2.3.3
  • Change detection sends or stores fragments when a relevant change occurs. section 2.3.3
  • Edge processing extracts observations locally and sends only derived data, such as a vehicle-detection event or occupancy count. section 2.3.3

A battery-powered water-meter camera

A camera photographs an analog meter, runs a model on the device to read its digits, and sends the reading over LoRaWAN to a digital twin. Extracting the reading reduces a roughly 100 KB image to 10 bytes—a 10,000-fold transmission reduction. Periodically sending a raw image provides a way to check the local result. Field conditions still matter: shadows, glare, and condensation degraded recognition, requiring calibration images, model retraining, and a physical enclosure. section 3.4.1

Listing 2.3 Using the YOLO model to detect multiple objects in a video stream
import cv2
import numpy as np
from ultralytics import YOLO

def run_webcam_detection():
  model = YOLO("yolov8n.pt")  #1
  cap = cv2.VideoCapture(0)  #2
  cap.set(cv2.CAP_PROP_FRAME_WIDTH, 640)  #3
  cap.set(cv2.CAP_PROP_FRAME_HEIGHT, 480)

  while True:
    ret, frame = cap.read()  #4
    results = model(frame) #5
    annotated_frame = results[0].plot()  #6
    cv2.imshow("YOLOv8 Detection", annotated_frame)  #7

    if cv2.waitKey(1) & 0xFF == ord('q'):
      break

  cap.release()
  cv2.destroyAllWindows()

The webcam listing loads a YOLO model, reads video frames, runs local object detection, and displays annotated results. It demonstrates local inference; selective event transmission would need to be added separately. section 2.3.3

How Digital Twins in Action covers it

How deep it goes
Explains placement, transmission choices, and a device-level case study, but does not specify a complete edge-to-cloud deployment procedure.
Examples
Uses selective video events, a YOLO webcam detector, and a water-meter camera that transmits extracted readings instead of images.
What it assumes
Defines edge placement directly while using digital twins, sensor data, and machine learning as the application context.
What you can do after
Evaluate/understand it by deciding what to process locally, what to transmit, and which field conditions require verification and tuning.
How it connects
Connects cloud computing, digital twins, sensor data, computer vision, machine learning inference, and intermittent connectivity.

Also explained in

Compare how 5 books explain edge computing →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Digital Twins in Action. The section links point to the parts of the book it draws on.