GoCoding GoCoding
4年前
RTSP H264/HEVC 流 Wasm 播放
本文将介绍RTSPH264/HEVC裸流如何于网页前端播放。涉及WebSocket代理发送流数据,Wasm前端解码等。代码:https://github.com/ikuokuo/rtspwasmplayer相关模块:bashRTSPWebSocketProxyRTSP/Webcam/FileFFmpegopenPackets
Wesley13 Wesley13
4年前
C++:获取时间戳
文中代码主要来自http://stackoverflow.com/questions/6012663/getunixtimestampwithc(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fstackoverflow.com%2Fquestions%2F601266
Stella981 Stella981
4年前
Pthreads 信号量,路障,条件变量
▶使用信号量来进行线程间信息传递●代码1include<stdio.h2include<pthread.h3include<semaphore.h4pragmacomment(lib,"pthreadVC2.lib")56constint
Stella981 Stella981
4年前
IE iframe跨域访问cookie丢失解决方法
问题描述:IE浏览器加载Iframe跨域访问后Cookie丢失,用户登录状态失效解决方法:在PHP中加入以下代码即可解决header("AccessControlAllowOrigin:");header("AccessControlAllowCredentials:true");head
Wesley13 Wesley13
4年前
003,LuaFramework集成KBEngine的lua客户端插件
LuaFramework与KBEngine的结合KBEngine的lua代码使用liuxq(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fgithub.com%2Fliuxq)的lua插件(https://www.
Wesley13 Wesley13
4年前
02、在层级未知情况下通过递归查找子物体
1、在在层级未知情况下通过递归查找子物体,这个主要是用于UI的的层级查找中2、代码:1usingSystem.Collections;2usingSystem.Collections.Generic;3usingU
Stella981 Stella981
4年前
Ruby on Rails 学习笔记(四)
当页面需要保持风格一致时,最简单的方法是采用模板。详见如下代码:<!doctype html<html <head  <meta charset"UTF8"  <meta name"Generator" content"EditPlus®"  <meta name"Author
Stella981 Stella981
4年前
Elasticsearch索引监控之Indices Segments API与Indices Shard Stores
本文将继续介绍elasticsearch索引监控之Indicessegments与IndicesShardstoresapi。IndicesSegments提供Lucene索引(分片级别)使用的segments(段信息)。其对应的示例代码如下:1public static final void test_Indic
Stella981 Stella981
4年前
OpenCV3与深度学习实例:Dlib+VGG Face实现两张脸部图像相似度比较
实现思路:1、使用Dlib识别并提取脸部图像2、使用VGGFace模型提取脸部特征3、使用余弦相似度算法比较两张脸部图像的特征代码如下:importtimeimportnumpyasnpimportsklearnimportsklearn.metrics.pairwiseaspw
深度学习——如何用LSTM进行文本分类
简介主要内容包括如何将文本处理为TensorflowLSTM的输入如何定义LSTM用训练好的LSTM进行文本分类代码导入相关库codingutf8importtensorflowastffrom