保存
文章平均质量分 52
qianbo_insist
AI,网络安全,nodejs,c++ ,java,.net
email :[email protected]
weixin:18091589062
展开
-
制作数据集数据过滤和数据缺失策略-pandas-sklearn
使用工具将数据集过滤分类,将csv文件另存为小文件,使用代码将文件过滤分析,示例:存储文件11.csv后,过滤column类型为heart的列取值heart原创 2022-04-29 06:41:28 · 302 阅读 · 0 评论 -
git 使用分支基础
1,添加主干的地址:git remote add main https://github.com/qiujiayu/AutoLoadCache.git2,查询分支git remote -vmain https://github.com/qiujiayu/AutoLoadCache.git (fetch)main https://github.com/qiujiayu/AutoLoadCache.git (push)origin https://github.com/yuanhote原创 2021-07-18 13:47:18 · 242 阅读 · 0 评论 -
网络安全:基于ARP欺骗的嗅探原理
嗅探器(sniffer) 嗅探器(sniffer)是一种刺探网络中传输数据的工具。为达到这一目的,一般的做法是设置网卡为混杂模式,这样就可以嗅探到所有经过本机网卡的数据(这种一般的sniffer原理不在此阐述)。但是这种sniffer有一个缺点,就是它只适用于共享式局域网,对于交换式局域网无效。因为在交换式局域网中,网络中的数据并不会经过每一台主机的网卡,所以对于交换式局域网,就要用另外一种更为主动的方法去嗅探,那就是基于ARP欺骗的嗅探。 &nb原创 2021-06-10 20:54:31 · 1169 阅读 · 0 评论 -
c++ 使用正则匹配url
stl 中regex 非常好用,即使不用boost库也可以很轻易地且高效地摘取你想要的内容,这里提供一个class解析出 a href 的文件名路径和文件名和文件后缀名/* author:qianbo date :2014-11-06 功能 :解析html A href 取出其中的连接,解析出全路径 文件前缀 文件后缀*/#include <regex> #include <string> #include <iostream>原创 2021-06-10 20:50:10 · 1477 阅读 · 0 评论 -
directshow-faac编码
目的建立一个简单的windows下的工具,采集音频后可以进行算法分析,简单来说:制作工具1、 portaudio2、directshow audio2、libfaac3、ffmpeg其实要选择,我们肯定会选择portaudio, 因为该工具是跨平台的,但是我们制作的是工具,因此依赖越少越好,使用directshow 和libfaac的依赖很少,计划直接使用,ffmpeg强大的工具,我们在编译开关中关掉,使用libfaac。后续算法1、去噪算法2、静音检测静音检测二3、回声消除下载工原创 2021-06-04 19:31:54 · 288 阅读 · 1 评论 -
d3d9 抓取windows屏幕
抓取桌面的几种方式里面,有GDI,direct3d, win10 的DXGI ,等等以下代码已经在gitee上,使用direct3d方式抓屏,保存png方式图片,可自行下载,代码里面还有一些抓取音频的,这些还没有整理,空了就整理这些代码https://gitee.com/guanzhi0319/capture#include <d3d9.h>#pragma comment(lib,"d3d9.lib")类声明class ScreenCapture9{private: //H原创 2021-06-03 21:49:30 · 1074 阅读 · 0 评论 -
c语言调用sqlite
db sqlite c语言#ifndef _DB_PLUGIN_H_#define _DB_PLUGIN_H_#pragma warning(disable: 4996)//#include "mongoose.h"//typedef struct mg_keyvalue//{// char *key;// int klen ;// char *value;// int vlen;//}mg_keyvalue;void *db_open(const char *db_path原创 2021-06-02 18:45:14 · 382 阅读 · 0 评论 -
三个常用c++11特性
对于初级的c++11 来说,两个比较常用的:1、 变量初始化#include<iostream>// std::cout#include<functional>// std::functionclass A{public: int i_ = 0; // C++11允许非静态数据成员在其声明处进行初始化 void output(int x, int y) { std::cout << x << "" << y <<原创 2021-06-02 13:40:02 · 234 阅读 · 0 评论 -
学音视频一定要掌握这几个算法
以前写的几个算法,希望对大家有用1、RGB2 YUV420P不使用ffmpeg,直接写一段,测试和ffmpeg一样功能,但没有缩放,转yuv的时候使用整数算法,这样比浮点数性能要好/*//Author:钱波//email: [email protected]//wei: 18091589062//func: nothing//time: 2018年5月30日*/static inline void RGB_2_YUV420(unsigned char* RgbBuf, int nW原创 2021-05-31 19:54:24 · 961 阅读 · 2 评论 -
c++11线程必须要懂得同步技术
包含future#include <future>#include <iostream>#include <thread>#include <chrono>#include <string> std::promise<int> promiseObj; std::future<int> futureObj = promiseObj.get_future(); s_param param; std原创 2021-05-29 10:52:54 · 470 阅读 · 0 评论 -
nodejs 最简单的文件接收
<body> <form action="http://localhost:3000/" method="POST" enctype="multipart/form-data"> <input multiple type="file" name="a"> <input type="submit" value="提交"> </form> <script>原创 2021-05-27 20:04:06 · 2058 阅读 · 0 评论 -
ffmpeg rtp传输使用
1 ffmpeg rtpffmpeg估计已经成为多媒体 流媒体开发的必备工具,编解码不可缺少的伙伴,rtp协议本身是非常优良的协议,刚进入协议编程的伙伴可以使用ffmpeg的rtp编程来入门,抓包2 简单使用2.1 包含头文件extern “C” {#include <libavformat/avformat.h>#include <libavcodec/avcodec.h>}2.2 命令行看指令//推RTP//ffmpeg - re - i cw.ts - v原创 2021-05-25 06:24:35 · 3915 阅读 · 4 评论 -
go发布http 文件server
package mainimport ( "log" "net/http" "os")func main() { os.Mkdir("file", 0777) http.Handle("/file/", http.StripPrefix("/file/", http.FileServer(http.Dir("file")))) err := http.ListenAndServe(":8080", nil) if err !=原创 2021-03-14 21:58:46 · 216 阅读 · 0 评论 -
boost1.7 centos7编译
下载后解压tar zxvf xxxx.tar.gz运行编译./bootstrap.sh./b2 -j 5./b2 installldconfig在usr/local/include/boost 下可以看到新安装的文件,写以下测试代码#include <iostream>#include <boost/filesystem.hpp> using namespace boost::filesystem; int main(int argc, char原创 2021-05-22 16:56:46 · 582 阅读 · 0 评论 -
检测直线方法 python
霍夫直线检测import cv2 as cvimport numpy as npimg = cv.imread('1.png')def line_detection(image): gray = cv.cvtColor(image, cv.COLOR_BGR2GRAY) # apertureSize做Canny时梯度窗口的大小 edges = cv.Canny(gray, 50, 150, apertureSize=3) # 返回的是r和theta lin原创 2021-04-16 07:12:56 · 4210 阅读 · 0 评论 -
使用go来做系统,如何比java node php 更 简单
使用gogo语言的好处不言而喻:效率问题,无论是开发效率还是运行效率至少都兼顾了,比较适合中国国情。运行可以以脚本运行,可以编译结果运行跨平台没有大问题例子,五分钟httpserve 和 mysql 准备好show me the code先写一个数据库连接获取数据的 package main import ( "database/sql" "fmt" _ "github.com/go-sql-driver/mysql" "github.com/jmoiron/sqlx"原创 2021-03-28 17:24:02 · 341 阅读 · 0 评论 -
如何做带宽估计和丢包策略
1 建立线性模型使用RTP 包发送 RTCP包回馈拿到延时时间,计算抖动,什么是抖动呢,多个数据包之间的延时不相同就叫抖动,非常简单,第一次发送延时20ms, 第二次发送延时10ms, 第三次发送延时 15ms,抖动约为5毫秒,如果抖动的数据增多,是可以给抖动增加一个模型验算的。Google Congestion Control(WebRTC中所用),SCReAM以及SPROUT算法都是控制算法。a1 * x + a2 = y基本都是线性模型,这里是算法的IETF文档描述现在的webrtc使用发原创 2021-03-25 06:38:37 · 1844 阅读 · 3 评论 -
opencv 一种灰度图像增强方式
opencv 取灰度图颜色范围有时候需要取opencv的灰度图颜色范围int main(){ cv::Mat src = cv::imread("lines.jpg", 1); cvtColor(src, g_gray, COLOR_BGR2GRAY); //cv::calcHist() g_dst.create(g_gray.size(), CV_8U); ImageStretchByHistogram(g_gray, g_dst); cv::imshow("gray", g_gra原创 2021-03-20 15:28:30 · 2455 阅读 · 1 评论 -
自由读写配置文件的艺术[java c++ node](二)
使用java c++ nodejs 读写配置文件,跳过注释原创 2021-03-16 13:37:38 · 196 阅读 · 1 评论 -
html svg画图
无废话,基础的svg画法,慢慢更新<!DOCTYPE html><!-- * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source *原创 2021-03-15 22:31:49 · 445 阅读 · 0 评论 -
c++自由读写配置ifstream(一)
使用ifstream读写配置ifstream标准c++的读写是非常方便的,效率也很不错,但是有几点需要注意的地方。如下的配置文件 in.txt#[email protected] author:钱波 qianbo 2021-02-28##field id(int):address(varchar):width(int):height(int)1 rtsp://127.0.0.1/l.264 1280 720//camera12 rtsp://127.0.0.1/l.264 1280 720原创 2021-02-28 11:50:02 · 928 阅读 · 0 评论 -
webgl 封装和可使用开源方案
webgl封装库1 three.js2 phaser.js3 Pixi.js4.plotly.js5.two.js6.Babylon.js7.deck.gl8.mapbox-gl-js官网地址:https://www.mapbox.com/mapsGitHub地址:https://github.com/mapbox/mapbox-gl-js...原创 2019-10-09 05:45:21 · 274 阅读 · 0 评论