# Loongson-Pextractor **Repository Path**: clearzero2/loongson-pextractor ## Basic Information - **Project Name**: Loongson-Pextractor - **Description**: 基于龙芯派的人脸识别智能物联网抽纸机 - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2023-07-19 - **Last Updated**: 2023-07-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Loongson-Pextractor [![DFyCKs.png](https://s3.ax1x.com/2020/11/15/DFyCKs.png)](https://imgchr.com/i/DFyCKs) [![License](https://img.shields.io/badge/license-Apache%202-green.svg)](https://www.apache.org/licenses/LICENSE-2.0) [![Build Status](https://travis-ci.org/xialonghua/kotmvp.svg?branch=master)](https://travis-ci.org/xialonghua/kotmvp) # 关于本项目 本项目为基于龙芯派二代的人脸识别智能物联网抽纸机,项目包含MIPS驱动代码 以及运行于龙芯派二代的客户端及运行于发行版Linux(测试为Ubuntu)的服务端的Qt应用代码 附赠UI设计的PSD文件与建模文件 # Psplash调试步骤 * cd Psplash_loong/ * ./make-image-header.sh JunBian.png POKY //其中JunBian.png可改成其他图片 * 如果修改过文件名,请将psplash.c中的头文件修改为你修改的图片名 * apt-get install autoconf automake * ./autogen.sh * ./configure --prefix=/home/ufhsykg/Loongson-Pextractor/psplash/ --host=mips CC=/opt/gcc-4.9.3-64-gnu/bin/mips64el-linux-gcc * make * 拷贝psplash与psplash-write至龙芯派的/usr/bin目录中 # 龙芯派驱动调试步骤 * cd Loongson-drive/ * 修改Makefile文件 ```c++ KERNELDIR := /home/ufhsykg/Desktop/nmsl/linux-3.10 CURRENT_PATH := $(shell pwd) obj-m := junbian.o build: kernel_modules kernel_modules: $(MAKE) ARCH=mips CROSS_COMPILE=/opt/gcc-4.9.3-64-gnu/bin/mips64el-linux- -C $(KERNELDIR) M=$(CURRENT_PATH) modules clean: $(MAKE) -C $(KERNELDIR) M=$(CURRENT_PATH) clean ``` * 修改内核位置及交叉编译链位置 * make # 以下为文件目录 ``` │ .gitattributes │ .gitignore │ LICENSE │ README.md │ Readme.txt │ ├─Loongson-drive │ ├─bin │ │ junbian.ko │ │ JUNNEW │ │ │ └─src │ junbian.c │ junbian.code-workspace │ junbian.ko │ junbian.mod.c │ junbian.mod.o │ junbian.o │ JUNNEW │ Makefile │ Module.symvers │ modules.order │ test_tr-mem.c │ ├─Psplash_loong │ │ aclocal.m4 │ │ AUTHORS │ │ autogen.sh │ │ ChangeLog │ │ compile │ │ config.h │ │ config.h.in │ │ config.log │ │ config.status │ │ configure │ │ configure.ac │ │ COPYING │ │ depcomp │ │ INSTALL │ │ install-sh │ │ JunBian-img.h │ │ make-image-header.sh │ │ Makefile │ │ Makefile.am │ │ Makefile.in │ │ missing │ │ NEWS │ │ psplash │ │ psplash-bar-img.h │ │ psplash-colors.h │ │ psplash-config.h │ │ psplash-console.c │ │ psplash-console.h │ │ psplash-console.o │ │ psplash-fb.c │ │ psplash-fb.h │ │ psplash-fb.o │ │ psplash-hand-img.h │ │ psplash-poky-img.h │ │ psplash-systemd.c │ │ psplash-write │ │ psplash-write.c │ │ psplash-write.o │ │ psplash.c │ │ psplash.doap │ │ psplash.h │ │ psplash.o │ │ radeon-font.h │ │ README │ │ stamp-h1 │ │ │ ├─autom4te.cache │ │ output.0 │ │ output.1 │ │ requests │ │ traces.0 │ │ traces.1 │ │ │ ├─base-images │ │ poky-logo.png │ │ poky-logo2.png │ │ psplash-bar.png │ │ psplash-hand.png │ │ psplash-poky.png │ │ │ └─loongson-images │ JunBian.png │ ├─QT-application │ ├─Client(for Loongson Pi 2) │ │ ├─bin │ │ │ │ client │ │ │ │ │ │ │ └─images │ │ │ addFace_ok.jpg │ │ │ Background.png │ │ │ copyright-0.png │ │ │ face.png │ │ │ junbian.jpg │ │ │ rec_ok.jpg │ │ │ slab_BG.png │ │ │ SYS_BG.png │ │ │ │ │ ├─Link │ │ │ clisocket.o │ │ │ main.o │ │ │ mainwindow.o │ │ │ Makefile │ │ │ moc_mainwindow.cpp │ │ │ moc_mainwindow.o │ │ │ moc_predefs.h │ │ │ opencv_deal.o │ │ │ v4l2_cap.o │ │ │ │ │ └─src │ │ client.pro │ │ client.pro.user │ │ client.pro.user.99d7fd8 │ │ clisocket.c │ │ clisocket.h │ │ main.cpp │ │ main.h │ │ mainwindow.cpp │ │ mainwindow.h │ │ moc_mainwindow.cpp │ │ opencv_deal.cpp │ │ opencv_deal.h │ │ v4l2_cap.c │ │ v4l2_cap.h │ │ │ └─Server(for Ubuntu 18.04) │ ├─bin │ │ │ faces.csv │ │ │ haarcascade_frontalface_alt.xml │ │ │ server │ │ │ update_csv │ │ │ │ │ ├─faces │ │ │ └─1_loongson │ │ │ 1.jpg │ │ │ 10.jpg │ │ │ 2.jpg │ │ │ 3.jpg │ │ │ 4.jpg │ │ │ 5.jpg │ │ │ 6.jpg │ │ │ 7.jpg │ │ │ 8.jpg │ │ │ 9.jpg │ │ │ │ │ └─images │ │ addFace_ok.jpg │ │ Background.png │ │ copyright-0.png │ │ face.png │ │ junbian.jpg │ │ rec_ok.jpg │ │ slab_BG.png │ │ SYS_BG.png │ │ │ ├─Link │ │ main.o │ │ mainwindow.o │ │ Makefile │ │ moc_mainwindow.cpp │ │ moc_mainwindow.o │ │ moc_predefs.h │ │ opencv_deal.o │ │ svrsocket.o │ │ usermngr.o │ │ │ └─src │ main.cpp │ main.h │ mainwindow.cpp │ mainwindow.h │ moc_mainwindow.cpp │ opencv_deal.cpp │ opencv_deal.h │ server.pro │ server.pro.user │ svrsocket.c │ svrsocket.h │ usermngr.cpp │ usermngr.h │ ├─Solid-design │ ├─Cutdev │ │ 基座上层.SLDPRT │ │ 电磁铁装置.SLDPRT │ │ 自动切纸机.SLDASM │ │ │ └─Drawdev │ 同步轮 20齿 带宽10、(1).SLDPRT │ 棍子(2).SLDPRT │ 棍子固定(2).SLDPRT │ 电动机.SLDPRT │ 电动机固定架.SLDPRT │ 送纸装置(1).SLDASM │ ├─Startup-scripts │ rc.local │ └─UI-design comBG.psd StartUp.psd sysbg.psd ```