自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(26)
  • 收藏
  • 关注

原创 vscode 安装勾选项解释

1、通过code 打开“操作添加到windows资源管理器文件上下文菜单 :把这个两个勾选上,可以对文件使用鼠标右键,选择VSCode 打开。2、将code注册为受支持的文件类型的编辑器:不建议勾选,这样会默认使用VSCode打开支持的相关文件,文件图标也会改变。3、添加到PATH(重启后生效):建议勾选,这样可以使用控制台打开VSCode 了。

2023-08-18 15:58:53 2593

原创 姿态识别:举手 拍照 坐姿判断 打哈欠 眨眼 openpose dlib

【代码】姿态识别:举手 拍照 坐姿判断 打哈欠 眨眼 openpose dlib。

2023-04-25 21:27:01 574 1

原创 zhong

import dlibimport joblibimport numpy as npimport copyimport pandas as pdimport pygamefrom imutils import face_utilsfrom scipy.spatial import distancefrom tkinter import *from PIL import Image, ImageTkimport tkinter.ttkimport numpyfrom PIL impor

2023-04-25 21:10:27 96

原创 拍照+上传文件+调用摄像头

import cv2。

2023-04-25 00:09:39 240

原创 openpose遍历

image_ids = open(‘./bianli/names.txt’).read().strip().split() # names.txt中存放待检测图片名称,图片名字不包含后缀。(self, modelpath, mode=“MPI”): # 选择指定模型:BODY25、COCO、MPI。if not os.path.exists(“./bianli/input”): # 创建文件夹。

2023-04-25 00:07:07 91

原创 kotlin 特殊表达式 问号 双感叹号

"?"加在变量名后,系统在任何情况不会报它的空指针异常。"!!"加在变量名后,如果对象为null,那么系统一定会报异常!对象A ?: 对象B 表达式,意思为,当对象 A值为 null 时,那么它就会返回后面的对象 B。...

2021-11-18 16:25:25 1362

原创 adb学习

查看包名adb shell dumpsys window | findstr mCurrentFocus

2021-08-02 15:48:56 79

原创 python文件生成exe

1.pip install pyinstaller2.pip install pywin323.D:\python\Lib\site-packages\PyInstaller直接在该目录cmd4.D:\python\Lib\site-packages\PyInstaller>python pyinstaller.py -F web.py5.找生成的exe 12902 INFO: Appending archive to EXE D:\python\Lib\site-packages\PyIn

2021-03-04 21:21:33 122 1

原创 8*8点阵

不知道引脚的可以一个一个试,电压不要太大<5V,小心烧坏首先定义行和列数组(对应的引脚)点亮某颗:digitalWrite(line[i],HIGH)digitalWrite(col[j],LOW)整体效果:二维数组+二重循环+If判断一个知识点:多个数码管显示数字的时候,我们实际上是轮流点亮数码管(一个时刻内只有一个数码管是亮的),利用人眼的视觉暂留现象(也叫余辉效应),就可以做到看起来是所有数码管都同时亮了,这就是动态显示,也叫做动态扫描。...

2021-02-20 11:35:36 299

原创 arduino 舵机

中间红线 正极 接5V 棕色线:负极接地

2021-02-03 23:24:45 240 1

原创 arduino 74hc595n 扩展

int big = 2;int push= 3;int data=4;int putnumber[8]={1,1,1,1,1,1,1,1};void setup(){ pinMode(big,OUTPUT); pinMode(push,OUTPUT); pinMode(data,OUTPUT);}void loop(){ digitalWrite(big,LOW); for (int i = 0; i < 8; i++) { put(putnumber[i].

2021-02-03 17:44:45 224

原创 vs code 愉快的编写arduino

下载arduino 的扩展在jason中复制代码 "arduino.path": "C:\\Program Files (x86)\\Arduino", "C_Cpp.intelliSenseEngine": "Tag Parser", "editor.insertSpaces": true, "files.autoGuessEncoding": true, "arduino.logLevel": "info", "explorer.confirmDelet

2021-02-03 16:12:18 535

原创 arduino 学习

LED封装函数class LedSegmentDisplays{ private: int ports[8]; int digits[10][8]; public: LedSegmentDisplays(int a, int b, int c, int d, int e, int f, int g, int h) { ports[0] = a; ports[1] = b; ports[2] = c; ports[3] = d; ports[4

2021-02-03 10:42:22 657 1

原创 python selenium学习

首先,找到chrome浏览器的版本,从http://chromedriver.storage.googleapis.com/index.html下载对应的Chromedriver版本解压添加到python 的安装路径的Scripts中

2021-01-25 12:37:51 63

原创 python 字符画

from PIL import Image # PIL 是一个 Python 图像处理库ascii_char = list("$@B%8& WM#* 2 345667")# 是我们的字符画所使用的字符集,一共有 70 个字符,字符的种类与数量可以自己根据字符画的效果反复调试的WIDTH = 60 # 字符画的宽HEIGHT = 45 # 字符画的高# 将256灰度映射到70个字符上,也就是RGB值转字符的函数:def get_char(r, g, b, alpha=256):

2021-01-25 10:14:28 123

原创 python二维码生成

我们经常使用 MyQR 库中的一个模块 myqr 来制作二维码,引用方式为from MyQR import myqr其参数如下所示:words:二维码内容,链接或者句子version:二维码大小,范围为[1,40]level:二维码纠错级别,范围为{L,M,Q,H},H为最高级,默认。picture:自定义二维码背景图,支持格式为 .jpg,.png,.bmp,.gif,默认为黑白色colorized:二维码背景颜色,默认为 False,即黑白色contrast:对比度,值越高对比度越高,默认为

2020-10-16 16:44:09 246

原创 python更新pip

python -m pip install --upgrade pip

2020-10-16 16:13:27 76

原创 C语言数组的默认初始值

int s[5];void main(){ printf("%d\n",s[0]); printf("%d\n",s[1]); printf("%d\n",s[2]); printf("%d\n",s[3]); printf("%d\n",s[4]);}void main(){ int s[5]; printf("%d\n",s[0]); printf("%d\n",s[1]); printf("%d\n",s[2]); printf(

2020-08-05 17:24:31 5183

原创 字符串相关

//void main(){ char a; //字符是char型 一个字节,gb2312汉字是两个字节,所以不行 a='h'; char b='\0'; //\是转义符比较特殊 int c =sizeof(b); printf("%d\n",c);//一个字节 char d[]=""; //char e=d; //空字符串也不能赋给字符变量 ??一种类型的变量要想存储某个对象,必须能兼容该对象的数据类型,而字符串连数据类型都算不上

2020-08-04 21:17:34 114 1

原创 指向一维数组的指针

#include<stdio.h>void main(){ int *t; int a[3]={1,2,3}; t=&a[0];//等价于t=a printf("%d\n",*(t+2));//地址是可以加的,+1,+2,表示移动一个单位 printf("%d\n",*t); printf("%d\n",*(t++)); //t++表达式使用时t还是原值 //单独使用时,功能一模

2020-08-01 19:06:00 415

原创 c语言 贪吃蛇注释超完整

#include <stdio.h>#include <stdlib.h>#include <Windows.h>//windows编程头文件#include <time.h>#include <conio.h>//控制台输入输出头文件#ifndef __cplusplus //在头文件中实用#ifndef #define #endif能避免头文件的重定义。 //第一次编译时,编译#ifndef

2020-07-24 23:29:42 284

原创 结构体数组

#include<stdio.h>#define n 2 //宏定义 ,当需要改变这个常量的值时,就不需要对整个程序一个一个进行修改,只需修改宏定义中的常量即可 //预处理就是“文本替换”struct student3 //定义结构体{ long num; char name[20]; int age;};//struct student3 s[n];void h(struct student3 s[n]) /

2020-07-24 16:10:31 84

原创 c语言冒泡排序

#include<stdio.h>#include<stdbool.h> //导入布尔类型关键字,让程序不做重复劳动int main(){ int m[4]={1,4,3,5}; int i,j,k; for (i = 0; i < 4-1; i++) { bool x=false; //核心还没开始,默认为false for (j = 0; j < 4-i-1; j++) //

2020-07-21 14:33:17 69

原创 结构体的大小和储存结构

#include<stdio.h>struct stus{ char name[20]; //20个类型为char的元素 unsigned int age; char tel[15]; char sex; float scores[3]; //按高位的数据类型存 为单位分配,so,当一个单位的空间存不了数据时,就会重新分配,导致有空出现 //写结构体时,从上到下按数据类型从大到小写,省空间//char

2020-07-20 15:58:07 145

原创 c语言结构体的写法

#include<stdio.h>#include<string.h>struct student{int age;char name[10]; //一个汉字两个字节,还有/0占一个,//char是容纳单字符的一种基本数据类型,不能存储汉字,(一个汉字占2字节)存储字符串用string,//其实String就是一个char的数组char sex;}u; //第三种写法int main(){struct student s={10,"零

2020-07-20 12:11:04 876

原创 python实现26个英文字母按规则输出

import stringn=eval(input())s=string.ascii_uppercasefor i in s:print(i,end=’’)if (s.find(i)+1)%n==0:print()

2020-03-30 08:43:12 3531

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除