Lesson 11: Intelligent Driving Recorder System

In daily life, have you ever noticed the Dash Cam in cars? It records the road conditions ahead during driving, and in case of a traffic accident or other unexpected events, these recordings become important evidence. Today, we are going to expand this concept further by using the UNIHIKER K10’s camera and Wi-Fi connectivity, allowing the car not only to record images from the rear but also to transmit these images in real-time to a computer webpage via the network. This way, we can monitor the car’s perspective anytime from a computer.

Task Objectives

Use UNIHIKER K10’s Wi-Fi function to transmit the captured images in real-time to a local area network webpage server, enabling real-time remote viewing from another device.

Knowledge Points

1. Master the method of connecting UNIHIKER K10 to Wi-Fi

2. Achieve remote visualization of the camera feed

3. Understand what a network camera is

Materials List

Hardware:

HARDWARE LIST
1 Maqueen Plus V3
1 UNIHIKER K10

Software:

Mind+ programming software (V1.8.1 RC3.0 or above)

Download link: https://mindplus.cc/

Hands-on Practice

The goal of this project is to achieve real-time image acquisition and remote viewing while the car is moving, turning the car into our "mobile monitoring camera." Therefore, the project is divided into two tasks.

Task 1: Image Acquisition and Local Display

Use the UNIHIKER K10 camera to capture rear images of the car in real-time and display the captured images on the UNIHIKER K10 screen simultaneously.

Task 2: Network Transmission and Remote Viewing

Use the UNIHIKER K10 Wi-Fi function to transmit the captured images in real-time to a local network webpage server, enabling real-time remote viewing from a computer or other devices.

Task 1: Image Acquisition and Local Display

1. Hardware connection

Use a USB 3.0 to Type-C data cable to connect the assembled car to the computer.

Note: The Type-C end should be connected to the UNIHIKER K10.

2. Software preparation

Open Mind+ and complete the software preparation as shown in the figure below.

3. Programming

Under the "unihiker k10 on start", add the "Enable camera show" block to show the camera-captured image in real time on the K10 screen, making it easier to observe the detection effect.

4. Program Execution

Before running the program, ensure that UNIHIKER K10 is correctly connected to the computer via the USB cable. After confirming, click the "Run" button in the software. Once the program uploads successfully, the UNIHIKER K10 screen will display the camera feed in real-time.

Task 2: Network Transmission and Remote Viewing

1. Preparation

To achieve network transmission, we need to connect the device to Wi-Fi; to transmit the camera feed to a webpage, we need the network camera function. Before programming, we must import two necessary libraries:

Add the "Wi-Fi" library: In "Internet", find and add the "Wi-Fi" library.

Add "K10webcam": In the "User-Ext" search box, enter the link "https://gitee.com/yeezb/k10web-cam" to retrieve and add the "K10webcam" library.

2. Programming

This task is added on top of Task 1’s program.

Before network transmission, first connect the device to a Wi-Fi network. In the "Internet" area, select "Wi-Fi connect to account: password:" and enter your Wi-Fi name and Wi-Fi password. Note: Ensure the hotspot name and password are correct; otherwise, the network connection will fail.

Before proceeding, ensure Wi-Fi is successfully connected. Use "wait until" and "Wi-Fi connected?" instructions to keep the program waiting until the connection is stable.

After connecting to Wi-Fi, go to the "User-Ext" instructions and add "Webcamera ON" to start the network transmission of the camera. The camera feed will now be uploaded to the local network, waiting for other devices to access.

To view the camera feed from a computer, obtain the device’s IP address using "Get Wi-Fi configuration IP address".

Next, use "cache text" to display the IP address on the UNIHIKER K10 screen, allowing access from a browser. The complete program is as follows:

3. Program Execution

Before running, ensure UNIHIKER K10 is properly connected via USB. Click the "Run" button in the software. Once uploaded, the UNIHIKER K10 screen will display the real-time camera feed and the device’s IP address (e.g., 192.168.1.109).

Open a browser on the computer, enter the IP address followed by /stream (e.g.:192.168.1.109/stream), then you can view the camera feed on the webpage in real-time!

Knowledge Base

1. What is a Network Camera

A network camera (English: Network Camera or IP Camera) is a camera device that transmits images over a network. Unlike traditional USB cameras, network cameras do not need to connect directly to a computer; they send image data through Wi-Fi or Ethernet to other devices in the LAN or Internet, such as computers, smartphones, or servers.

In this project, we turned the UNIHIKER K10 camera into a "network camera" with the following functions:

· Upload captured images to a LAN server

· View the camera feed in a browser by entering the K10’s IP address

· Remote viewing without data cables

We implemented a "mini car version of a smart dash cam" system. Although it seems simple, it embodies advanced technology. Let’s see how these technologies impact our lives and inspire future imagination!

2. From Monitoring to Perception: How Smart Devices Understand the World

By letting the car "see" rear images and transmit them to a webpage in real-time, we are simulating a "machine vision" system. In reality, cameras, LiDAR, and infrared sensors equip machines with human-like perception.

More importantly, they don’t just "see"; they "understand."

In advanced autonomous driving systems, vehicles use multiple cameras and sensors to recognize traffic lights, lane lines, pedestrians, and obstacles, then make decisions using AI algorithms. Like a human driver assessing the road, the smart car is "thinking."

If the car can recognize objects in the image, what can it do? Stop when it sees "red"? Turn when it sees an "arrow"?

3. The Future of Smart Mobility: Not Just Autonomous Driving

With 5G and edge computing, future cars will be more than transportation—they will be intelligent, interconnected devices.

V2X (Vehicle-to-Everything) Technology: Cars communicate with cloud, other vehicles, traffic lights, and road sensors. For example, your car can know an accident 100m ahead and reroute.

Smart City Systems: Camera data uploads to traffic centers for signal control and accident response.

Emergency Assistance and Driver Aid: Systems can brake, steer, or even call emergency services automatically.

If you could design a "future city traffic system," what abilities would you give the cars?

Challenge Yourself

Can you add a line-following function to the car?

Combine the remote viewing feature with a line-following program. While the car follows a black line automatically, you can monitor its actions live on-site and via the webpage feed! Your car now behaves like a car with a "smart dash cam". Try it out and make your car smarter and cooler!

icon program.zip 569KB Download(1)
License
All Rights
Reserved
licensBg
0