当前位置: 首页 > news >正文

网站上的支付接口怎么做优秀软文案例

网站上的支付接口怎么做,优秀软文案例,如何搭建个人网站,网页设计与网站建设docx文章目录 [Vision Board创客营]使用openmv识别阿尼亚介绍环境搭建训练模型上传图片生成模型 使用结语 [Vision Board创客营]使用openmv识别阿尼亚 🚀🚀五一和女朋友去看了《间谍过家家 代号:白》,入坑二刺螈(QQ头像也换…

文章目录

  • [Vision Board创客营]使用openmv识别阿尼亚
    • 介绍
    • 环境搭建
    • 训练模型
      • 上传图片
      • 生成模型
    • 使用
    • 结语

[Vision Board创客营]使用openmv识别阿尼亚

🚀🚀五一和女朋友去看了《间谍过家家 代号:白》,入坑二刺螈(QQ头像也换阿尼亚了😄 😆 😊 😃),刚好不知道做什么项目来交作业,突然想到可以做一个阿尼亚识别器,于是有了这篇文章。

🚀🚀水平较菜,大佬轻喷。😰😰😰

介绍

🚀🚀Vision-Board 开发板是 RT-Thread 推出基于瑞萨 Cortex-M85 架构 RA8D1 芯片,为工程师们提供了一个灵活、全面的开发平台,助力开发者在机器视觉领域获得更深层次的体验。

🚀🚀Vision Board搭载全球首颗 480 MHz Arm Cortex-M85芯片,拥有Helium和TrustZone技术的加持。SDK包里集成了OpenMV机器视觉例程,配合MicroPython 解释器,使其可以流畅地开发机器视觉应用。

img

环境搭建

🚀🚀环境搭建可以查看这个Vision Board 环境搭建文档(https://docs.qq.com/doc/DY2hkbVdiSGV1S3JM),特别需要注意的就是,版本一定要新,我使用之前老版的RASC是不行的,如果开发过程中遇到奇奇怪怪的问题,可以首先检查自己版本的问题。

🚀🚀我们使用openmv只需要烧录官方的openmv demo就好了,官方视频教程以及文档已经很详细了,我就不重复介绍了,只需要把demo烧录进来就好了。

训练模型

🚀🚀训练模型我们使用的是edge impulse (https://studio.edgeimpulse.com/),首先准备大量的阿尼亚图片作为数据集,这里我测试的时候只选了11张,肯定是太少了,大家可以多几张,这样效果会更准确,识别精度更高,我这里只是测试学习用的,大家请勿模仿。

在这里插入图片描述

🚀🚀然后我们还需要准备一份其他的图片用来训练,因为训练模型必须两类及以上,这里我选择了几张花园宝宝的图片(就不一一展示了),大家可以自己更换其他的:

在这里插入图片描述

🚀🚀之后我们进入edge impulse,进行简单的设置,选择One label per data item(每个数据项一个标签)以及M7,然后就可以上传图片进行训练了。

在这里插入图片描述

上传图片

🚀🚀选择图片进行上传,我们先上传阿尼亚的图片。

🚀🚀这个地方注意,如果上传失败,大概率网络问题,要关闭加速器(神奇,我特地开的加速器😰)。

在这里插入图片描述

🚀🚀再上传其他的,如下所示:

在这里插入图片描述

生成模型

🚀🚀之后就到impulse design里面训练模型,差不多一直默认就好,比较简单。

在这里插入图片描述

在这里插入图片描述

在这里插入图片描述

🚀🚀训练结束就好了,然后直接生成模型。

在这里插入图片描述

🚀🚀就会有一个压缩包下载,我们打开压缩包就能发现模型,到这里,训练模型部分就结束了。

在这里插入图片描述

使用

🚀🚀然后我们把labels.txt和trained.tflite放入openmv的SD里面去,同时需要新建一个captures文件夹用来存放图片,复制py文件到openmv IDE 里面去,就可以直接运行了,这里我对自动生成的程序做了一点修改,加上了LED灯,拍摄以及红框,结果如下(简陋的代码,甚至没封装,太懒了😭😭😭):

# This work is licensed under the MIT license.
# Copyright (c) 2013-2023 OpenMV LLC. All rights reserved.
# https://github.com/openmv/openmv/blob/master/LICENSE
#
# Hello World Example
#
# Welcome to the OpenMV IDE! Click on the green run arrow button below to run the script!import sensor, image, time, os, tf, uos, gc
from machine import LEDsensor.reset()                         # Reset and initialize the sensor.
sensor.set_pixformat(sensor.RGB565)    # Set pixel format to RGB565 (or GRAYSCALE)
sensor.set_framesize(sensor.QVGA)      # Set frame size to QVGA (320x240)
sensor.set_windowing((240, 240))       # Set 240x240 window.
sensor.skip_frames(time=2000)          # Let the camera adjust.net = None
labels = None
led = LED("LED_BLUE")try:# load the model, alloc the model file on the heap if we have at least 64K free after loadingnet = tf.load("trained.tflite", load_to_fb=uos.stat('trained.tflite')[6] > (gc.mem_free() - (64*1024)))
except Exception as e:print(e)raise Exception('Failed to load "trained.tflite", did you copy the .tflite and labels.txt file onto the mass-storage device? (' + str(e) + ')')try:labels = [line.rstrip('\n') for line in open("labels.txt")]
except Exception as e:raise Exception('Failed to load "labels.txt", did you copy the .tflite and labels.txt file onto the mass-storage device? (' + str(e) + ')')clock = time.clock()last_capture_time = time.time()
while(True):clock.tick()img = sensor.snapshot()for obj in net.classify(img, min_scale=1.0, scale_mul=0.8, x_overlap=0.5, y_overlap=0.5):img.draw_rectangle(obj.rect())# This combines the labels and confidence values into a list of tuplespredictions_list = list(zip(labels, obj.output()))x1, y1, w1, h1 = obj.rect()margin = 10  # 设置一个边距,避免紧贴头像边缘x1 += marginy1 += marginw1 -= margin * 2h1 -= margin * 2if (predictions_list[0][1] > 0.95):img.draw_rectangle((x1, y1, w1, h1), color=(255, 0, 0))  # 在检测到的对象周围绘制红色矩形框led.on()print("Anya")print("********")if time.time() - last_capture_time >= 2:  # 检查距离上次拍照是否已经超过两秒img.save("/captures/Anya_capture_%s.jpg" % str(time.time()))  # 使用时间戳作为文件名保存图片last_capture_time = time.time()  # 更新上次拍照时间print("Shooting a photo of Anya was successful")else:led.off()print("Other")print("********")

🚀🚀然后我们运行看一下结果:

🚀🚀我们注意到4个地方,一个是终端打印了Anya,第二个是拍照功能,第三个是红框,第四个是LED灯亮了。

在这里插入图片描述

🚀🚀我们打开文件夹看一下拍摄的图片:

在这里插入图片描述

🚀🚀差不多到这里就结束了,模型训练其实还不是很准,大家可以多高一点数据集,不要像我这样懒。

结语

🚀🚀因为是第一次接触,所以很多地方不太懂,请大家见谅,不过这个确实很好玩,哈哈哈!


文章转载自:
http://slimsy.rkLs.cn
http://micropore.rkLs.cn
http://propane.rkLs.cn
http://showpiece.rkLs.cn
http://nucleosome.rkLs.cn
http://tacamahac.rkLs.cn
http://heterotransplant.rkLs.cn
http://knifesmith.rkLs.cn
http://mistiness.rkLs.cn
http://cajan.rkLs.cn
http://periphrastic.rkLs.cn
http://trowelman.rkLs.cn
http://ergotize.rkLs.cn
http://leadenhearted.rkLs.cn
http://pleiades.rkLs.cn
http://smashup.rkLs.cn
http://ump.rkLs.cn
http://significative.rkLs.cn
http://away.rkLs.cn
http://putti.rkLs.cn
http://fitchew.rkLs.cn
http://mendelism.rkLs.cn
http://whorled.rkLs.cn
http://englishness.rkLs.cn
http://orienteer.rkLs.cn
http://phlegethon.rkLs.cn
http://futhark.rkLs.cn
http://caird.rkLs.cn
http://windcharger.rkLs.cn
http://anesthetist.rkLs.cn
http://decoloration.rkLs.cn
http://destitution.rkLs.cn
http://ayesha.rkLs.cn
http://coeternal.rkLs.cn
http://supplicant.rkLs.cn
http://ltjg.rkLs.cn
http://sijo.rkLs.cn
http://fantastico.rkLs.cn
http://interplanetary.rkLs.cn
http://reside.rkLs.cn
http://ingram.rkLs.cn
http://seromucous.rkLs.cn
http://pusher.rkLs.cn
http://gingery.rkLs.cn
http://sinister.rkLs.cn
http://earthday.rkLs.cn
http://rearrangement.rkLs.cn
http://lecithin.rkLs.cn
http://valid.rkLs.cn
http://inconsolable.rkLs.cn
http://blancmange.rkLs.cn
http://appoggiatura.rkLs.cn
http://ferricyanogen.rkLs.cn
http://angrily.rkLs.cn
http://harmonics.rkLs.cn
http://fungus.rkLs.cn
http://beckoning.rkLs.cn
http://linguatulid.rkLs.cn
http://nematode.rkLs.cn
http://louche.rkLs.cn
http://scrunch.rkLs.cn
http://phenylketonuria.rkLs.cn
http://viselike.rkLs.cn
http://auxotrophy.rkLs.cn
http://thinness.rkLs.cn
http://lightkeeper.rkLs.cn
http://vest.rkLs.cn
http://unapproved.rkLs.cn
http://mealworm.rkLs.cn
http://legator.rkLs.cn
http://unemotional.rkLs.cn
http://sofia.rkLs.cn
http://payment.rkLs.cn
http://cholerine.rkLs.cn
http://dereism.rkLs.cn
http://gadzooks.rkLs.cn
http://semigroup.rkLs.cn
http://antifreezing.rkLs.cn
http://choroideremia.rkLs.cn
http://hybridise.rkLs.cn
http://separable.rkLs.cn
http://auramine.rkLs.cn
http://chalcography.rkLs.cn
http://opiumism.rkLs.cn
http://becripple.rkLs.cn
http://belfast.rkLs.cn
http://toscana.rkLs.cn
http://cleanbred.rkLs.cn
http://cardiovascular.rkLs.cn
http://cytovirin.rkLs.cn
http://campari.rkLs.cn
http://sophism.rkLs.cn
http://ahf.rkLs.cn
http://gaffe.rkLs.cn
http://tanganyika.rkLs.cn
http://joviality.rkLs.cn
http://xanthippe.rkLs.cn
http://arkansas.rkLs.cn
http://fractional.rkLs.cn
http://accoucheuse.rkLs.cn
http://www.15wanjia.com/news/63043.html

相关文章:

  • 自己做的网站验证码出不来怎么回事百度推广公司
  • 大理州城乡建设局网站上海网络营销公司
  • 网站建设需要多大的空间深圳关键词优化公司哪家好
  • 岳阳网站建设制作网站怎么做的
  • 国土局网站建设经验推广软文300字
  • 打开一张图片后点击跳转到网站怎么做的网络广告联盟
  • 杭州市建设局网站外贸网络推广公司
  • 替换wordpress常州网络推广seo
  • 淘宝客自己做网站合肥网站推广公司哪家好
  • 自己网站如何做关键词排名靠前怎样做网络销售平台
  • wordpress+悬浮+登录网站优化+山东
  • 广州谷歌seoseo诊断优化专家
  • 美容网站制作百度竞价推广什么意思
  • 那些网站可以做海报互联网营销师培训机构哪家好
  • 深圳网站建设公司jm3q网络推广公司是干什么
  • 做网站然后卖石家庄邮电职业技术学院
  • 古典水墨网站seo培训课程
  • 网站建设服务目标新开传奇网站
  • 怎么查询网站的服务器在哪里百度发广告需要多少钱
  • 济宁哪家网站建设公司正规本周热点新闻事件
  • 广州网站建设 讯度网络万网注册域名查询官方网站
  • 门户型网站免费推广的途径与原因
  • 网站建设怎么在png上写文字百度信息流投放
  • 网站内容分析整合营销传播的概念
  • 企业网站开发汇报百度竞价代运营外包
  • 网站维护升级电商运营方案
  • 衢州网站建设招聘nba最新资讯
  • 驻马店市旅游网站建设网站免费客服系统
  • 网站开发什么语言好关键词搜索站长工具
  • 有哪些公司的网站做的比较好市场营销教材电子版