- 博客(69)
- 收藏
- 关注
原创 tf.keras.utils.get_file 获取文件示例
https://www.tensorflow.org/api_docs/python/tf/keras/utils/get_file?version=stable_URL = "https://storage.googleapis.com/download.tensorflow.org/example_images/flower_photos.tgz"zip_file = tf.kera...
2019-12-28 19:26:47 6382 1
原创 VSCode Python tensorlfow 插件
推荐插件安装:https://www.cnblogs.com/wintersoft/p/11630197.htmlPythonVisual Studio IntelliCodeAnaconda Extension PackTensorFlow Snippets
2019-11-05 07:54:37 494
转载 How to run TF hub locally without internet connection
thanks toXianbo QIANhttps://blog.csdn.net/bleedingfight/article/details/80768306https://github.com/tensorflow/hub/issues/53TF hub provides access to a list of model made free by Google. Howeve...
2019-10-28 06:21:33 348
转载 生成.tflite檔案過程中遇到的問題及解決方案
转自https://codertw.com/%E7%A8%8B%E5%BC%8F%E8%AA%9E%E8%A8%80/512752/正確的做法首先產生eval.pbtxt才能保證後續的freeze_graph、toco的正確。如何產生eval.pbtxt詳見Tensorflow部署到移動端。利用eval.pbtxt進行正確的freeze graph:freeze_graphba...
2019-10-26 10:29:44 284
转载 tensorflow model几种模型文件
转载:https://blog.eson.org/pub/3da24a26/模型文件相关checkpoint (.ckpt): variable的序列化存储,常用于保存和还原模型参数。保存方式是变量name—>value的映射 缺陷:序列化内容与创建的代码相关,因此在跨语言时通常不采用这种格式 SavedModel: 同时包含variable、graph、grap...
2019-10-26 08:59:27 2192
原创 Jetson nano 学习资源
Getting Started With Jetson Nano Developer Kit (NVIDIA官網)https://developer.nvidia.com/embedded/learn/get-started-jetson-nano-devkitNVIDIA Jetson Nano 實際使用難不難?從入手到安裝系統、開機與遠端連線https://blog.cavedu.com/2...
2019-10-13 05:42:04 2565
原创 python图像大小调整 保持长宽比 增加背景色
from PIL import Imagedef resize(image_pil, width, height): ''' Resize PIL image keeping ratio and using white background. ''' ratio_w = width / image_pil.width ratio_h = heigh...
2019-10-09 17:36:37 2872
原创 机器学习扩充图像数据集的利器
imgaug是一个python库,可帮助您为机器学习项目扩充图像。它将一组输入图像转换为一组稍有变化的新的,更大的图像。This python library helps you with augmenting images for your machine learning projects. It converts a set of input images into a new, ...
2019-10-07 21:50:11 717
原创 jetson nano inference networks下载
Jetson nano 能运行的网络下载地址:https://github.com/dusty-nv/jetson-inference/releases1 "\Zb Image Recognition - all models (2.2 GB)\Zn" off \2 " > AlexNet (244 MB)" off \3 " &g...
2019-10-06 17:22:48 1920
原创 Jetson Nano 安装 face_recognition
安装face_recognition时发现终端中下载face_recognition_models-0.3.0.tar.gz非常慢,而浏览器中安装则非常快。于是浏览器中下载好face_recognition_models-0.3.0.tar.gzpip3 install ~/Downloads/face_recognition_models-0.3.0.tar.gz pip3 in...
2019-10-06 15:44:13 812 1
原创 Jetson nano 安装 face_recognition人脸识别
sudo apt-get updatesudo apt-get install python3-pip cmake libopenblas-dev liblapack-dev libjpeg-devgit clone https://github.com/JetsonHacksNano/installSwapfile./installSwapfile/installSwapfile.s...
2019-10-06 14:13:51 2173 1
原创 Ubuntu 18.04 E: Unable to locate package libopenblas-dev解决方法
Jestson nano上安装libopenblas-dev提示如下错误sudo apt-get updatesudo apt-get install python3-pip cmake libopenblas-dev liblapack-dev libjpeg-devE: Unable to locate package libopenblas-dev E: Package '...
2019-10-06 13:46:44 4598 1
原创 Jetson nano 为Python3安装opencv
网上又说用cmake编译,其实以下命令就可为python3 安装opencvsudo apt-get install python3-opencv
2019-09-20 18:54:11 2858 1
转载 解决TensorFlow的ImportError: DLL load failed: 动态链接库(DLL)初始化例程失败
https://docs.floydhub.com/guides/environments/ TF python兼容性列表【背景】 在scikit-learn基础上系统结合数学和编程的角度学习了机器学习后(我的github:https://github.com/wwcom614/machine-learning),意犹未尽,打算再借势学习下深度学习TensorFlow。无奈安装之后遇...
2019-08-25 06:00:16 1876 1
原创 小白也学人工智能 有用的链接
https://183.62.33.212/tfjs-mnist/dense.htmlhttps://app3.gzjkw.net/tfc-mnist-conv-vis
2019-08-12 21:36:29 391
原创 树莓派快速拍照及图片处理
https://picamera.readthedocs.io/en/release-1.13/recipes2.html#rapid-capture-and-processingimport ioimport timeimport picameraclass SplitFrames(object): def __init__(self): self.fram...
2019-08-07 14:47:51 2195
原创 树莓派摄像头使用常用命令及代码
检测树莓派摄像头是否可用raspistill -o image.jpg2592*1944分辨率直接在终端输入 raspistill 即可查看所有 raspistill的命令选项间隔一定时间拍摄一张照片raspistill -t 30000 -tl 2000 -o image%04d.jpg拍摄一段长度为6000ms的视频并保存为video.h264raspivid -o vi...
2019-08-06 21:53:10 5332
原创 树莓派raspistill命令
"raspistill" Camera App (commit )Runs camera for specific time, and take JPG capture at end if requestedusage: raspistill [options]Image parameter commands-q, --quality : Set jpeg quality &l...
2019-08-06 21:03:18 2535
转载 HiveMQ CE和hivemq mqtt web client
MQTT broker 用过几个,如果是自己测试做实验,比较喜欢HiveMQ CE和hivemq mqtt web clientHiveMQ CE是一个MQTT服务器,有windows Linux多个版本支持websocket;hivemq mqtt web client是一个基于websocket的web客户端连接HiveMQ CE非常方便。HiveMQ CEis a Java-b...
2019-07-26 14:07:03 3140
转载 JSON的在线分析工具jsoneditoronline.org
发现一个较好的JSON数据分析的工具jsoneditoronline.org 再此记录一下。
2019-07-24 15:16:44 821
原创 tensorflow import 导入包 出现Importing the multiarray numpy extension module failed错误
今天安装tensorflow,提示安装成功但是导入tensorflow包时,出现Importing the multiarray numpy extension module failed错误:>>> import tensorflow as tfTraceback (most recent call last): File "/home/pi/.local/lib/p...
2019-07-13 18:52:51 2826
原创 树莓派安装tensorflow 错误解决THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE.
今天在Raspberry上安装Tensorflow遇到以下错误,这里记录一下:THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE. If you have updated the package versions, please update the hashes. Otherwise, examine the p...
2019-07-13 18:43:20 4798 1
原创 ESP8266由于电源问题引起的自动重启
今天使用了直插 TO-92 HT7533 A1稳压管给ESP8266供电,上电后出现不断重启现象,提示如下:ets Jan 8 2013,rst cause:4, boot mode:(3,3)wdt resetets Jan 8 2013,rst cause:4, boot mode:(3,7)wdt resetets Jan 8 2013,rst cause:4...
2019-04-12 19:52:06 5508
原创 esp8266启动报错 ets Jan 8 2013,rst cause:2, boot mode:(7,7)
16:49:16.516 -> ets Jan 8 2013,rst cause:2, boot mode:(7,7)16:49:16.516 -> waiting for host16:50:15.396 -> ets Jan 8 2013,rst cause:2, boot mode:(5,7)16:50:15.430 -> waiting for hos...
2019-04-12 19:31:35 5815
转载 在Raspberry Pi树莓派 上安装mosquitto mqtt 服务器
转载:https://www.switchdoc.com/2018/02/tutorial-installing-and-testing-mosquitto-mqtt-on-raspberry-pi/https://learn.adafruit.com/diy-esp8266-home-security-with-lua-and-mqtt/configuring-mqtt-on-the-ras...
2019-04-05 07:34:54 2294
转载 转载——ZigBee HomeAutomation分析
转自https://www.cnblogs.com/cherishui/p/3786413.html 原文作者邮箱[email protected]本例程讲解,基于TI CC2530-2.5.1a中的HomeAutomation文件夹中的SampleLight和SampleSwitch例子来讲解。由于使用了ZCL标准簇库和HA profile,在数据传输处理上,相对比较复杂,只...
2019-04-02 14:40:26 1062
原创 Esp8266烧写错误解决办法 error: failed reading byte warning: espcomm_send_command: can't receive slip
按照下图搭了 Esp8266 12F最小系统:ESP8266 12F 最小系统ESP8266 12F 最小系统GPIO0 GPIO2 GPIO15 1 1 0 8266运行模式 0 1 0 8266串口下载模式如上图 ESP8266 12...
2019-03-31 17:26:48 3812
转载 利用zigbee2mqtt自制Zigbee 网关接入Domoticz 和HomeAssistant
https://gadget-freakz.com/diy-zigbee-gateway/https://blog.csdn.net/WIZnet2012/article/details/41673581https://www.domoticz.com/wiki/ZigBeehttps://www.arduino.cc/en/Guide/ArduinoWireles...
2019-03-03 11:26:41 12846 1
转载 【转载】MIXLY二次开发(傻瓜版)
Mixly是北师大教育学部创客教育实验室开发的一款图形化编程软件,是在Google Blockly图形化语言的基础上开发,目前支持大部分arduino型号。可惜Mixly还不支持Genuino101的六轴传感器和BLE蓝牙两项强大功能,在和北师大教育学部创客教育实验室的老师交流之后,我决定自己来开发Mixly对Genuino101的支持模块。Mixly的大部分程序都是用JavaScript...
2019-02-27 10:37:07 1884 3
转载 micropython for Esp8266内置库
micropython for Esp8266内置库>>> help('modules')__main__ http_client socket upip_boot http_client_ssl ssd1306 upip_utarfile_onewire ...
2019-02-16 14:45:08 1759
转载 Arduino ESP32 Example
http://www.iotsharing.com/2017/07/how-to-use-ble-in-arduino-esp32.htmlhttp://www.iotsharing.com/Introduction to ESP32Demo 1: Blinky - a Hello World on Arduino ESP32Demo 2: How to use multiple Seri...
2019-02-15 13:59:23 1260 1
转载 如何降低ESP8266的能耗
看到一篇好文,分享一下Reducing the Power Consumption of Your ESP8266We are now going to see how to lower the power consumption of your ESP8266 WiFi chip. To do that, we are going to use the deep sleep functi...
2019-02-15 13:17:02 1999
转载 ESP8266编辑器
转自 http://stanley2910.pixnet.net/blog/post/135631082-esplorer-&-micropython-%E6%95%99%E5%AD%B8 這篇文章介紹一些可以開發ESDP8266的編輯器,目前個人偏好使用MicroPython使用開發ESP8266程,因此這些軟體是可以編寫MicroPython為主,但通常可以編寫MicroPytho...
2019-02-15 12:58:05 1187 1
转载 Python 在教育方面的资源列表
awesome-python-in-educationhttps://github.com/quobit/awesome-python-in-educationhttps://juejin.im/entry/593227a1a0bb9f0058c35889
2019-02-15 12:52:51 446
原创 Domoticz添加实时天气信息显示
Domoticz面板中可以添加JSON格式的信息。这里以添加彩云天气API信息为例。基本步骤:添加HTTP/HTTPS poller虚拟硬件 添加虚拟设备 编写lua脚本 脚本放在制定目录下添加HTTP/HTTPS poller 类型硬件URL—— 是彩云天气API的地址,实际上就是JSON格式数据。命令 ——tianqi_paraser.lua 是我们后面需要编写的脚...
2019-02-14 18:00:15 2786 4
原创 Domoticz 启动后日志提示 缺少 libpython3.x
Windows7 python3.7 64 安装Domoticz启动时出现如下提示:EventSystem - Python: Failed dynamic library load, install the latest libpython3.x library that is available for your platform.好像是说相关库没有找到,可是Python2 ...
2019-02-14 13:55:53 568
原创 使用 ESP8266Client 和 ESP8266HTTPClient 库创建Esp8266和Domoticz之间的TCP连接
#include <ESP8266WiFi.h>#include <ESP8266HTTPClient.h>#include <DHT.h>#define DHTTYPE DHT11 // DHT type (DHT11, DHT22)#define DHTPIN 5 // Broche du DH...
2019-02-14 13:18:55 1850
原创 Arduino Esp8266一些有用的库
WebSocket MQTT COAPhttps://github.com/morrissinger/ESP8266-Websocket https://github.com/Links2004/arduinoWebSockets https://github.com/ejeklint/arduinoWebSocketserver https://github.com/knollear...
2019-02-13 19:50:29 5172
转载 Alios Things Example Helloworld 程序分析
#include <aos/aos.h>static void app_delayed_action(void *arg){ LOG("helloworld %s:%d %s\r\n", __func__, __LINE__, aos_task_name()); aos_post_delayed_action(5000, app_delayed_actio...
2019-02-12 10:03:13 1148
原创 Alios Things SDK ESP32 GPIO管脚定义
platform\mcu\esp32\bsp\include\driver\include\driver\gpio.h #ifndef _DRIVER_GPIO_H_#define _DRIVER_GPIO_H_#include "esp_err.h"#include <esp_types.h>#include "soc/gpio_reg.h"#include "s...
2019-02-12 09:27:26 1594
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人