[go language practice] (1) gin + wechat applet vehicle information contact platform

Time:2022-3-17

A vehicle information contact platform built by separating the front and rear ends of golang + wechat applet

(there are also some Python in it.

[go language practice] (1) gin + wechat applet vehicle information contact platform
[go language practice] (1) gin + wechat applet vehicle information contact platform

1. Background


1.1 creative background:

In campus life, electric vehicles are the main commuting tools of most students, and the use group of electric vehicles is becoming larger and larger. But the problems come one after another. The limited charging and parking space has brought a lot of trouble to the students. At the same time, it is difficult to contact the car owner, resulting in many unnecessary conflicts.

For example, electric vehicles occupy the charging space, but no one can be found, illegal parking of vehicles affects access, it is difficult to recover electric vehicles quickly when they are lost, and it is difficult to contact the owner in time when someone’s car is scratched… In order to eliminate these problems, we have designed and developed this set of small program platform for vehicle contact information – douliang car Federation, which has functions including: owner community, online chat, message reminder The interconnection of relatives and friends and the viewing of electric piles make it easy for car owners to exchange information, and help users better and more quickly solve the problems caused by the parking, charging, loss and damage of vehicles in small and medium-sized areas while avoiding the leakage of personal information.

1.2 objectives:

  1. The user can bind the license plate number by taking photos to identify the license plate number, and can also find the corresponding owner through the license plate number.
  2. Appeal and feedback can be made for license plate conflict.
  3. It can contact the owner of the other party through text message reminder, online chat, SMS reminder and other forms.
  4. Powerful community module supports interactive trading of idle items.
  5. It is convenient for users to select charging piles in real time.
  6. In addition to basic management operations, the background can also monitor the traffic flow in real time.

1.3 development environment:

Development language:
Backend: golang v1 15、Python v3. seven
Front end: wechat applet basic library v2 16.0、Vue v3. three

Algorithm: pytorch v1 7.1、Cuda v11. 0

Database: MySQL v5.0 7.30、MongoDB v4. 4.6、Redis v4. zero point nine

SMS service: Tencent cloud SMS

File storage: qiniu cloud storage
Server: Alibaba cloud server

2. Function introduction


2.1 main part

Statement: the home page and personal information page here are for referenceThere is a pit next doorApplet front end.
Original author GitHub:GitHub
[go language practice] (1) gin + wechat applet vehicle information contact platform

  • In the main page, the UI interface introduction is generous and appropriate. It is convenient for users to quickly understand the general functions of the applet. Thank the original author for his open source!
  • The main page presents four modules
    1. Community module
    2. Relatives and friends module
    3. Chat module
    4. Personal Center

2.2 user module

The personal center can modify the user’s personal information. Because it logs in with wechat, the name and avatar are to read the avatar and name of wechat. Therefore, the name and avatar cannot be modified.

However, mobile phone number, email number and vehicle can be unbound.
Users can manage their own vehicles by binding their own license plate number.

License plate, we provide an OCR algorithm interface, which can recognize the license plate, and then return the license plate information to bind the vehicle.

  • personal information
  • Bind mailbox
  • Binding mobile phone
  • Bind license plate

[go language practice] (1) gin + wechat applet vehicle information contact platform
[go language practice] (1) gin + wechat applet vehicle information contact platform
[go language practice] (1) gin + wechat applet vehicle information contact platform
[go language practice] (1) gin + wechat applet vehicle information contact platform

2.3 community module

Recommend modules, friends and relatives circle, leisure to Kangkang, my world, etc.

  • My world module can view the posts published by users.
  • Post details, you can comment on the post, like and other operations.
  • Post sending, users can post through topics.

[go language practice] (1) gin + wechat applet vehicle information contact platform
[go language practice] (1) gin + wechat applet vehicle information contact platform
[go language practice] (1) gin + wechat applet vehicle information contact platform
[go language practice] (1) gin + wechat applet vehicle information contact platform

2.4 chat module and charging function

  • Chat function to realize real-time chat.
  • System message, the system can send targeted information.
  • User feedback, you can comment and report, chat and report, license plate appeal and other functions.
  • For charging pile query, we use crawlers to crawl the situation of school charging piles, so that users can view the situation of charging piles.

[go language practice] (1) gin + wechat applet vehicle information contact platform
[go language practice] (1) gin + wechat applet vehicle information contact platform
[go language practice] (1) gin + wechat applet vehicle information contact platform
[go language practice] (1) gin + wechat applet vehicle information contact platform

2.5 algorithm

The results of the algorithm part are returned through the flash framework API interface.


2.5.1 fasterrcnn network license plate recognition

[go language practice] (1) gin + wechat applet vehicle information contact platform
[go language practice] (1) gin + wechat applet vehicle information contact platform

[go language practice] (1) gin + wechat applet vehicle information contact platform

2.5.2 yolov5 vehicle identification

[go language practice] (1) gin + wechat applet vehicle information contact platform
[go language practice] (1) gin + wechat applet vehicle information contact platform

2.6 background management module

The background module is relatively simple and has not been designed with many functions. It needs to be improved later.

  • User module management
  • Vehicle module management
  • Feedback information management
  • Traffic flow monitoring and management

[go language practice] (1) gin + wechat applet vehicle information contact platform
Users can be blackened and sealed

[go language practice] (1) gin + wechat applet vehicle information contact platform
You can get off the shelf and modify the user’s post information.

[go language practice] (1) gin + wechat applet vehicle information contact platform
It can process the user’s vehicle, change the license plate number, etc

3. Summary

This project is to participate in the wechat applet development competition
[go language practice] (1) gin + wechat applet vehicle information contact platform
However, unlike last year, this applet actually needs the cloud function of the applet for back-end development.
[go language practice] (1) gin + wechat applet vehicle information contact platform
That’s all. I can only throw this as a school game.
In fact, it also consolidated the back-end development.

  • Ws of go is also involved.
  • Gorm also has a deep understanding of many to many. There are also some logical structures of the back end.
  • Familiar with some operations of Tencent cloud SMS, qiniu cloud storage and Alibaba cloud server.

This time the algorithm

  • License plate recognition based on fasterrcnn
  • Vehicle detection based on Yolo network

But by the way, you can take this as the soft work practice of next semester, ha ha!

My favorite friends can pay attention to me~