工业视觉识别
应用介绍
工业视觉项目图像识别算法及业务逻辑。
#!/usr/bin/python3
# -*- coding:utf-8 -*-
from utils.worker_producer import DataHandler
from conf import *
from flask import Flask, request, jsonify
app = Flask(__name__)
vision_mq_temperature = DataHandler(MQ_SETTING, MQ_SETTING["queue_name"]["v_temperature"])
def icv_msgStringify(success, msg, status, data):
return jsonify({
"success": success,
"message": msg,
"status": status,
"data": data,
})
# 立即查看最新测温功能
@app.route('/temperature_now', methods=['POST'])
def temperature_now():
try:
data = request.json
camera_info = {
'camera_ip': data["camera_ip"],
'camera_id': data["camera_id"],
'preset_no_number': data["preset_no_number"],
}
vision_mq_temperature.upload_img(camera_info)
return icv_msgStringify(True, 'Temperature now success', 200, '')
except Exception as e:
return icv_msgStringify(False, 'Temperature now failed : post data error', 400, "")
if __name__ == "__main__":
app.run(host=CLIENT_IP, port=CLIENT_PORT, debug=True)
。。。。。。。。了解详情请下载附件
©版权声明:本文内容由互联网用户自发贡献,版权归原创作者所有,本站不拥有所有权,也不承担相关法律责任。如果您发现本站中有涉嫌抄袭的内容,欢迎发送邮件至: [email protected] 进行举报,并提供相关证据,一经查实,本站将立刻删除涉嫌侵权内容。
转载请注明出处: apollocode » 工业视觉识别
文件列表(部分)
名称 | 大小 | 修改日期 |
---|---|---|
DataType.h | 1.43 KB | 2019-12-11 |
DecodeCardSdk.h | 4.67 KB | 2019-12-11 |
Device.ini | 0.11 KB | 2019-12-11 |
getpsdata_infraed.so | 15.20 KB | 2019-12-11 |
HCNetSDK.h | 390.83 KB | 2019-12-11 |
hik_infraed_customer.py | 0.75 KB | 2019-12-11 |
hik_infraed_temperature.py | 0.43 KB | 2019-12-11 |
infraed.cpp | 2.03 KB | 2019-12-11 |
iniFile.h | 1.76 KB | 2019-12-11 |
libanalyzedata.so | 99.77 KB | 2019-12-11 |
libAudioRender.so | 564.20 KB | 2019-12-11 |
libHCAlarm.so | 63.72 KB | 2019-12-11 |
libHCCore.so | 304.15 KB | 2019-12-11 |
libHCCoreDevCfg.so | 101.01 KB | 2019-12-11 |
libHCDisplay.so | 128.04 KB | 2019-12-11 |
libHCGeneralCfgMgr.so | 266.92 KB | 2019-12-11 |
libHCIndustry.so | 173.64 KB | 2019-12-11 |
libhcnetsdk.so | 65.09 KB | 2019-12-11 |
libHCPlayBack.so | 59.86 KB | 2019-12-11 |
libHCPreview.so | 60.61 KB | 2019-12-11 |
libHCVoiceTalk.so | 25.49 KB | 2019-12-11 |
libhpr.so | 64.77 KB | 2019-12-11 |
libiconv2.so | 585.29 KB | 2019-12-11 |
libPlayCtrl.so | 1,311.00 KB | 2019-12-11 |
libStreamTransClient.so | 55.68 KB | 2019-12-11 |
libSuperRender.so | 117.28 KB | 2019-12-11 |
libSystemTransform.so | 142.01 KB | 2019-12-11 |
Makefile | 0.24 KB | 2019-12-11 |
plaympeg4.h | 8.28 KB | 2019-12-11 |
hik_temperature_alarm.iml | 0.26 KB | 2019-12-11 |
发表评论 取消回复