thingsboard接入臻识道闸

thingsboard 和tb-gateway 是通过源码idea启动测试开发

为了测试这里只是买了臻识道闸的摄像机模组方便调试,然后添加一个开关量开关模拟雷达

image.png

道闸品牌

臻识C3R3C5R5变焦500万车牌识别相机高速追逃费相机华厦V86像机
淘宝地址 https://item.taobao.com/item.htm?_u=s1thkikq47ab&id=705371091697&spm=a1z09.2.0.0.2fe72e8dxewbm6
image.png

image.png

了解道闸协议

这里通过mqtt进行通信,下面是臻识道闸的mqtt通信协议,这里只是截图用到的部分

道闸识别车牌结果发送topic

车牌识别topic ${sn}/device/message/up/ivs_result
image.png
image.png
image.png
image.png

下发设备io事件开闸

开闸topic ${sn}/device/message/down/gpio_out
image.png
image.png

thingsboard 设置

1.在平台添加一个网关,设置为网关
image.png

配置iot gateway 并且启动

  1. 修改iot gateway 配置文件路径:thingsboard_gateway/config/tb_gateway.json
    设置host 为thingsboard服务器的mqtt地址
    image.png

  2. 复制网关token到gateway配置
    image.png
    粘贴到accessToken
    image.png

  3. 开启gprc
    image.png

  4. 添加mqtt配置引用
    image.png
    下面是总的配置文件不要直接复制我的,token不一样

{  
  "thingsboard": {  
    "host": "127.0.0.1",   
    "port": 1883,  
    "remoteShell": false,  
    "remoteConfiguration": true,  
    "statistics": {  
      "enable": true,  
      "statsSendPeriodInSeconds": 3600  
    },  
    "deviceFiltering": {  
      "enable": false,  
      "filterFile": "list.json"  
    },  
    "maxPayloadSizeBytes": 1024,  
    "minPackSendDelayMS": 200,  
    "minPackSizeToSend": 500,  
    "checkConnectorsConfigurationInSeconds": 60,  
    "handleDeviceRenaming": true,  
    "security": {  
      "type": "accessToken",  
      "accessToken": "QWk7kMTZsdjQC8nVEo7f"  
    },  
    "qos": 1,  
    "checkingDeviceActivity": {  
      "checkDeviceInactivity": false,  
      "inactivityTimeoutSeconds": 200,  
      "inactivityCheckPeriodSeconds": 500  
    }  
  },  
  "storage": {  
    "type": "memory",  
    "read_records_count": 100,  
    "max_records_count": 100000,  
    "data_folder_path": "./data/",  
    "max_file_count": 10,  
    "max_read_records_count": 10,  
    "max_records_per_file": 10000,  
    "data_file_path": "./data/data.db",  
    "messages_ttl_check_in_hours": 1,  
    "messages_ttl_in_days": 7  
  },  
  "grpc": {  
    "enabled": true,  
    "serverPort": 9595,  
    "keepaliveTimeMs": 10000,  
    "keepaliveTimeoutMs": 5000,  
    "keepalivePermitWithoutCalls": true,  
    "maxPingsWithoutData": 0,  
    "minTimeBetweenPingsMs": 10000,  
    "minPingIntervalWithoutDataMs": 5000,  
    "keepAliveTimeMs": 10000,  
    "keepAliveTimeoutMs": 5000  
  },  
  "connectors": [  
    {  
      "name": "MQTT Broker Connector",  
      "type": "mqtt",  
      "configuration": "mqtt.json"  
    }  
  ]  
}
  1. 启动一个 mqtt broker,这里用docker 启动
docker run -d --name emqx -p 1883:1883 -p 8083:8083 -p 8084:8084 -p 8883:8883 -p 18083:18083 emqx/emqx:5.3.2
  1. 配置mqtt.json
    5.1 配置文件路径:thingsboard_gateway/config/mqtt.json
    修改成你自己启动的mqtt broker
    image.png
    5.2 在"mapping"[]里面添加下面配置
    这个/device/message/up/ivs_result 是臻识道闸车牌识别topic
    timeseries内的是重新组合设备数据
    eventType 字段是事件触发类型1代表是车牌识别
    license 车牌 base64加密
    full_image_content 车牌拍照图片 base64加密
{  
  "topicFilter": "/device/message/up/ivs_result",  
  "converter": {  
    "type": "json",  
    "deviceNameJsonExpression": "${sn}",  
    "deviceTypeJsonExpression": "臻识道闸设备配置",  
    "sendDataOnlyOnChange": false,  
    "timeout": 60000,  
    "attributes": [  
  
    ],  
    "timeseries": [  
      {  
        "type": "string",  
        "key": "eventType",  
        "value": "1"  
      },  
       {  
        "type": "string",  
        "key": "id",  
        "value": "${id}"  
      },  
       {  
        "type": "string",  
        "key": "sn",  
        "value": "${sn}"  
  
      },  
      {  
        "type": "string",  
        "key": "name",  
        "value": "${name}"  
  
      },  
       {  
        "type": "string",  
        "key": "version",  
        "value": "${version}"  
  
      },  
      {  
        "type": "long",  
        "key": "timestamp",  
        "value": "${timestamp}"  
      },  
      {  
        "type": "string",  
        "key": "license",  
        "value": "${payload.AlarmInfoPlate.result.PlateResult.license}"  
      },  
      {  
        "type": "string",  
        "key": "full_image_content",  
        "value": "${payload.AlarmInfoPlate.result.PlateResult.full_image_content}"  
      }  
    ]  
  }  
},

5.3 配置单向下发rpc控制
在serverSideRpc 里面下面配置配置
${deviceName}/device/message/down/gpio_out 是控制道闸开闸的topic

{  
  "type": "oneWay",  
  "deviceNameFilter": ".*",  
  "methodFilter": "no-reply",  
  "requestTopicExpression": "/${deviceName}/device/message/down/gpio_out",  
  "valueExpression": "${params}"  
},

具体全部配置 mqtt.json

{  
  "broker": {  
    "name": "192.168.1.73",  
    "host": "192.168.1.73",  
    "port": 1883,  
    "clientId": "ThingsBoard_gateway111",  
    "version": 5,  
    "maxMessageNumberPerWorker": 10,  
    "maxNumberOfWorkers": 100,  
    "sendDataOnlyOnChange": false,  
    "security": {  
      "type": "basic",  
      "username": "admin",  
      "password": "public"  
    }  
  },  
  "mapping": [  
    {  
      "topicFilter": "sensor/data",  
      "converter": {  
        "type": "json",  
        "deviceNameJsonExpression": "${serialNumber}",  
        "deviceTypeJsonExpression": "${sensorType}",  
        "sendDataOnlyOnChange": false,  
        "timeout": 60000,  
        "attributes": [  
          {  
            "type": "string",  
            "key": "model",  
            "value": "${sensorModel}"  
          },  
          {  
            "type": "string",  
            "key": "${sensorModel}",  
            "value": "on"  
          }  
        ],  
        "timeseries": [  
          {  
            "type": "double",  
            "key": "temperature",  
            "value": "${temp}"  
          },  
          {  
            "type": "double",  
            "key": "humidity",  
            "value": "${hum}"  
          },  
          {  
            "type": "string",  
            "key": "combine",  
            "value": "${hum}:${temp}"  
          }  
        ]  
      }  
    },  
    {  
      "topicFilter": "/device/message/up/ivs_result",  
      "converter": {  
        "type": "json",  
        "deviceNameJsonExpression": "${sn}",  
        "deviceTypeJsonExpression": "臻识道闸设备配置",  
        "sendDataOnlyOnChange": false,  
        "timeout": 60000,  
        "attributes": [  
  
        ],  
        "timeseries": [  
          {  
            "type": "string",  
            "key": "eventType",  
            "value": "1"  
          },  
           {  
            "type": "string",  
            "key": "id",  
            "value": "${id}"  
          },  
           {  
            "type": "string",  
            "key": "sn",  
            "value": "${sn}"  
  
          },  
          {  
            "type": "string",  
            "key": "name",  
            "value": "${name}"  
  
          },  
           {  
            "type": "string",  
            "key": "version",  
            "value": "${version}"  
  
          },  
          {  
            "type": "long",  
            "key": "timestamp",  
            "value": "${timestamp}"  
          },  
          {  
            "type": "string",  
            "key": "license",  
            "value": "${payload.AlarmInfoPlate.result.PlateResult.license}"  
          },  
          {  
            "type": "string",  
            "key": "full_image_content",  
            "value": "${payload.AlarmInfoPlate.result.PlateResult.full_image_content}"  
          }  
        ]  
      }  
    },  
    {  
      "topicFilter": "sensor/+/data",  
      "converter": {  
        "type": "json",  
        "deviceNameTopicExpression": "(?<=sensor/)(.*?)(?=/data)",  
        "deviceTypeTopicExpression": "Thermometer",  
        "sendDataOnlyOnChange": false,  
        "timeout": 60000,  
        "attributes": [  
          {  
            "type": "string",  
            "key": "model",  
            "value": "${sensorModel}"  
          }  
        ],  
        "timeseries": [  
          {  
            "type": "double",  
            "key": "temperature",  
            "value": "${temp}"  
          },  
          {  
            "type": "double",  
            "key": "humidity",  
            "value": "${hum}"  
          }  
        ]  
      }  
    },  
    {  
      "topicFilter": "sensor/raw_data",  
      "converter": {  
        "type": "bytes",  
        "deviceNameExpression": "[0:4]",  
        "deviceTypeExpression": "default",  
        "sendDataOnlyOnChange": false,  
        "timeout": 60000,  
        "attributes": [  
          {  
            "type": "raw",  
            "key": "rawData",  
            "value": "[:]"  
          }  
        ],  
        "timeseries": [  
          {  
            "type": "raw",  
            "key": "temp",  
            "value": "[4:]"  
          }  
        ]  
      }  
    },  
    {  
      "topicFilter": "custom/sensors/+",  
      "converter": {  
        "type": "custom",  
        "extension": "CustomMqttUplinkConverter",  
        "cached": true,  
        "extension-config": {  
          "temperatureBytes": 2,  
          "humidityBytes": 2,  
          "batteryLevelBytes": 1  
        }  
      }  
    }  
  ],  
  "connectRequests": [  
    {  
      "topicFilter": "sensor/connect",  
      "deviceNameJsonExpression": "${serialNumber}"  
    },  
    {  
      "topicFilter": "sensor/+/connect",  
      "deviceNameTopicExpression": "(?<=sensor/)(.*?)(?=/connect)"  
    }  
  ],  
  "disconnectRequests": [  
    {  
      "topicFilter": "sensor/disconnect",  
      "deviceNameJsonExpression": "${serialNumber}"  
    },  
    {  
      "topicFilter": "sensor/+/disconnect",  
      "deviceNameTopicExpression": "(?<=sensor/)(.*?)(?=/disconnect)"  
    }  
  ],  
  "attributeRequests": [  
    {  
      "retain": false,  
      "topicFilter": "v1/devices/me/attributes/request",  
      "deviceNameJsonExpression": "${serialNumber}",  
      "attributeNameJsonExpression": "${versionAttribute}, ${pduAttribute}",  
      "topicExpression": "devices/${deviceName}/attrs",  
      "valueExpression": "${attributeKey}: ${attributeValue}"  
    }  
  ],  
  "attributeUpdates": [  
    {  
      "retain": true,  
      "deviceNameFilter": ".*",  
      "attributeFilter": "firmwareVersion",  
      "topicExpression": "sensor/${deviceName}/${attributeKey}",  
      "valueExpression": "{\"${attributeKey}\":\"${attributeValue}\"}"  
    }  
  ],  
  "serverSideRpc": [  
    {  
      "type": "twoWay",  
      "deviceNameFilter": ".*",  
      "methodFilter": "echo",  
      "requestTopicExpression": "sensor/${deviceName}/request/${methodName}/${requestId}",  
      "responseTopicExpression": "sensor/${deviceName}/response/${methodName}/${requestId}",  
      "responseTimeout": 10000,  
      "valueExpression": "${params}"  
    },  
    {  
      "type": "oneWay",  
      "deviceNameFilter": ".*",  
      "methodFilter": "no-reply",  
      "requestTopicExpression": "/${deviceName}/device/message/down/gpio_out",  
      "valueExpression": "${params}"  
    },  
    {  
      "type": "oneWay",  
      "deviceNameFilter": ".*",  
      "methodFilter": "no-reply",  
      "requestTopicExpression": "asd/123",  
      "valueExpression": "${params}"  
    }  
  ],  
  "id": "546ac257-db5e-43a0-8d38-4755ae904aa8"  
}

配置完成启动tb-gateway服务

设置道闸规则链

在thingsboard添加一个名字为臻识道闸规则链 的责任链
image.png

注意在switch 事件切换进行事件触发判断
在script 进行组合下发命令
然后rpc call request 进行下发发送执行
image.png

switch tbel编写

function nextRelation(metadata, msg) {
    var arr=[];

if(msg.eventType == "1") {
    arr.push('车牌识别触发事件');
 
}
return arr;
}
return nextRelation(metadata, msg);

script tbel编写

msg.payload={
type: "gpio_out",
 body: {
 delay: 500,
 io: 0,
 value: 2
 }
};
msg.name="gpio_out";
msg.version="1.0";
var decodedData = atob(msg.license); // 解析base64车牌
if(decodedData.indexOf("无")== -1){
var msg1={method:"no-reply",params:msg};
metadata.oneway=true;
return {msg: msg1, metadata: metadata, msgType: "RPC_CALL_FROM_SERVER_TO_DEVICE"};
}

这个是规则链json,复制下来直接导入即可

{
  "ruleChain": {
    "name": "臻识道闸规则链",
    "type": "CORE",
    "firstRuleNodeId": null,
    "root": false,
    "debugMode": false,
    "configuration": null,
    "additionalInfo": {
      "description": ""
    }
  },
  "metadata": {
    "firstNodeIndex": 6,
    "nodes": [
      {
        "type": "org.thingsboard.rule.engine.telemetry.TbMsgTimeseriesNode",
        "name": "Save Timeseries",
        "debugMode": true,
        "singletonMode": false,
        "queueName": null,
        "configurationVersion": 0,
        "configuration": {
          "defaultTTL": 0
        },
        "additionalInfo": {
          "description": null,
          "layoutX": 569,
          "layoutY": 120
        }
      },
      {
        "type": "org.thingsboard.rule.engine.telemetry.TbMsgAttributesNode",
        "name": "Save Client Attributes",
        "debugMode": true,
        "singletonMode": false,
        "queueName": null,
        "configurationVersion": 2,
        "configuration": {
          "scope": "CLIENT_SCOPE",
          "notifyDevice": false,
          "sendAttributesUpdatedNotification": false,
          "updateAttributesOnlyOnValueChange": true
        },
        "additionalInfo": {
          "description": null,
          "layoutX": 612,
          "layoutY": 24
        }
      },
      {
        "type": "org.thingsboard.rule.engine.filter.TbMsgTypeSwitchNode",
        "name": "Message Type Switch",
        "debugMode": false,
        "singletonMode": false,
        "queueName": null,
        "configurationVersion": 0,
        "configuration": {
          "version": 0
        },
        "additionalInfo": {
          "description": null,
          "layoutX": 257,
          "layoutY": 127
        }
      },
      {
        "type": "org.thingsboard.rule.engine.action.TbLogNode",
        "name": "Log RPC from Device",
        "debugMode": true,
        "singletonMode": false,
        "queueName": null,
        "configurationVersion": 0,
        "configuration": {
          "scriptLang": "TBEL",
          "jsScript": "return '\\nIncoming message:\\n' + JSON.stringify(msg) + '\\nIncoming metadata:\\n' + JSON.stringify(metadata);",
          "tbelScript": "return '\\nIncoming message:\\n' + JSON.stringify(msg) + '\\nIncoming metadata:\\n' + JSON.stringify(metadata);"
        },
        "additionalInfo": {
          "description": null,
          "layoutX": 554,
          "layoutY": 230
        }
      },
      {
        "type": "org.thingsboard.rule.engine.action.TbLogNode",
        "name": "Log Other",
        "debugMode": false,
        "singletonMode": false,
        "queueName": null,
        "configurationVersion": 0,
        "configuration": {
          "scriptLang": "TBEL",
          "jsScript": "return '\\nIncoming message:\\n' + JSON.stringify(msg) + '\\nIncoming metadata:\\n' + JSON.stringify(metadata);",
          "tbelScript": "return '\\nIncoming message:\\n' + JSON.stringify(msg) + '\\nIncoming metadata:\\n' + JSON.stringify(metadata);"
        },
        "additionalInfo": {
          "description": null,
          "layoutX": 554,
          "layoutY": 343
        }
      },
      {
        "type": "org.thingsboard.rule.engine.rpc.TbSendRPCRequestNode",
        "name": "RPC Call Request",
        "debugMode": true,
        "singletonMode": false,
        "queueName": null,
        "configurationVersion": 0,
        "configuration": {
          "timeoutInSeconds": 60
        },
        "additionalInfo": {
          "description": null,
          "layoutX": 557,
          "layoutY": 430
        }
      },
      {
        "type": "org.thingsboard.rule.engine.profile.TbDeviceProfileNode",
        "name": "Device Profile Node",
        "debugMode": false,
        "singletonMode": false,
        "queueName": null,
        "configurationVersion": 0,
        "configuration": {
          "persistAlarmRulesState": false,
          "fetchAlarmRulesStateOnStart": false
        },
        "additionalInfo": {
          "description": "Process incoming messages from devices with the alarm rules defined in the device profile. Dispatch all incoming messages with \"Success\" relation type.",
          "layoutX": 190,
          "layoutY": 413
        }
      },
      {
        "type": "org.thingsboard.rule.engine.transform.TbTransformMsgNode",
        "name": "下发",
        "debugMode": true,
        "singletonMode": false,
        "queueName": null,
        "configurationVersion": 0,
        "configuration": {
          "scriptLang": "TBEL",
          "jsScript": "msg.payload={\ntype: \"gpio_out\",\n body: {\n delay: 500,\n io: 0,\n value: 2\n }\n}\nvar msg1={method:\"no-reply\",params:msg,}\nmetadata.oneway=true;\nreturn {msg: msg1, metadata: metadata, msgType: \"RPC_CALL_FROM_SERVER_TO_DEVICE\"};",
          "tbelScript": "msg.payload={\ntype: \"gpio_out\",\n body: {\n delay: 500,\n io: 0,\n value: 2\n }\n};\nmsg.name=\"gpio_out\";\nmsg.version=\"1.0\";\nvar decodedData = atob(msg.license); // decode the string\nif(decodedData.indexOf(\"无\")== -1){\nvar msg1={method:\"no-reply\",params:msg};\nmetadata.oneway=true;\nreturn {msg: msg1, metadata: metadata, msgType: \"RPC_CALL_FROM_SERVER_TO_DEVICE\"};\n}"
        },
        "additionalInfo": {
          "description": "",
          "layoutX": 1074,
          "layoutY": 421
        }
      },
      {
        "type": "org.thingsboard.rule.engine.rpc.TbSendRPCRequestNode",
        "name": "下发",
        "debugMode": true,
        "singletonMode": false,
        "queueName": null,
        "configurationVersion": 0,
        "configuration": {
          "timeoutInSeconds": 60
        },
        "additionalInfo": {
          "description": "",
          "layoutX": 1001,
          "layoutY": 655
        }
      },
      {
        "type": "org.thingsboard.rule.engine.filter.TbJsSwitchNode",
        "name": "事件切换",
        "debugMode": true,
        "singletonMode": false,
        "queueName": null,
        "configurationVersion": 0,
        "configuration": {
          "scriptLang": "TBEL",
          "jsScript": "function nextRelation(metadata, msg) {\n    return ['one','nine'];\n}\nif(msgType === 'POST_TELEMETRY_REQUEST') {\n    return ['two'];\n}\nreturn nextRelation(metadata, msg);",
          "tbelScript": "function nextRelation(metadata, msg) {\n    var arr=[];\n\nif(msg.eventType == \"1\") {\n    arr.push('车牌识别触发事件');\n \n}\nreturn arr;\n}\nreturn nextRelation(metadata, msg);"
        },
        "additionalInfo": {
          "description": "",
          "layoutX": 1005,
          "layoutY": 197
        }
      }
    ],
    "connections": [
      {
        "fromIndex": 0,
        "toIndex": 9,
        "type": "Success"
      },
      {
        "fromIndex": 2,
        "toIndex": 0,
        "type": "Post telemetry"
      },
      {
        "fromIndex": 2,
        "toIndex": 1,
        "type": "Post attributes"
      },
      {
        "fromIndex": 2,
        "toIndex": 3,
        "type": "RPC Request from Device"
      },
      {
        "fromIndex": 2,
        "toIndex": 4,
        "type": "Other"
      },
      {
        "fromIndex": 2,
        "toIndex": 5,
        "type": "RPC Request to Device"
      },
      {
        "fromIndex": 6,
        "toIndex": 2,
        "type": "Success"
      },
      {
        "fromIndex": 7,
        "toIndex": 8,
        "type": "Success"
      },
      {
        "fromIndex": 9,
        "toIndex": 7,
        "type": "车牌识别触发事件"
      }
    ],
    "ruleChainConnections": null
  }
}

创建一个设备配置

设备配置规则链要用上面配置的规则链"臻识道闸设备配置"
image.png

臻识道闸设备配置这个名称不要写错,因为在网关gateway 的配置中
“deviceTypeJsonExpression”: “臻识道闸设备配置”, 是对应的deviceType的

配置道闸后台

首先要给道闸插网线,然后电脑和道闸在一个网络
登录道闸后台,道闸后台的地址在摄像头模组上有地址
1.在后台的高级设置>高级网络>mqtt配置
先配置mqtt broker

image.png

然后配置topic,注意这里只配置
道闸识别topic /device/message/up/ivs_result
下发控制io事件topic /设备id/device/message/down/gpio_out
image.png
开启抓拍图片上传mqtt,开启之后图片是通过道闸识别topic /device/message/up/ivs_result 进行base64上传 对应字段full_image_content

image.png

然后保存确定

测试

找一个车牌图片,打开道闸后台对准摄像头 按下模拟雷达开关触发
image.png

这个时候会自动创建一个设备
image.png
设备详情遥测
image.png

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:/a/658469.html

如若内容造成侵权/违法违规/事实不符,请联系我们进行投诉反馈qq邮箱809451989@qq.com,一经查实,立即删除!

相关文章

回顾java-异常

异常 &#xff1a;指的是程序在执行过程中&#xff0c;出现的非正常的情况&#xff0c;最终会导致JVM的非正常停止。 在Java等面向对象的编程语言中&#xff0c;异常本身是一个类&#xff0c;产生异常就是创建异常对象并抛出了一个异常对象。Java处理异常的方式是中断处理。 需…

python探索图表配置的深度与广度

新书上架~&#x1f447;全国包邮奥~ python实用小工具开发教程http://pythontoolsteach.com/3 欢迎关注我&#x1f446;&#xff0c;收藏下次不迷路┗|&#xff40;O′|┛ 嗷~~ 目录 一、基础配置&#xff1a;从全局到细节 示例&#xff1a;颜色与边界的设置 二、文本与标签…

【跟着例子学MySQL】SQL进阶 – 视图、事务和变量

文章目录 前言回顾视图事务用户变量未完待续 前言 举例子&#xff0c;是最简单有效的学习方法。本系列文章以一个贯穿始终的场景&#xff0c;结合多个实例讲解MySQL的基本用法。 ❔ 为什么要写这个系列&#xff1f; 模仿是最好的老师&#xff0c;实践是检验成果的方法。本系列…

基于VMware安装Linux虚拟机

1.准备Linux环境 首先&#xff0c;我们要准备一个Linux的系统&#xff0c;成本最低的方式就是在本地安装一台虚拟机。为了统一学习环境&#xff0c;不管是使用MacOS还是Windows系统的同学&#xff0c;都建议安装一台虚拟机。 windows采用VMware&#xff0c;Mac则采用Fusion …

视频集中存储LntonCVS视频监控汇聚平台智慧园区应用方案

智慧园区&#xff0c;作为现代化城市发展的重要组成部分&#xff0c;承载着产业升级的使命&#xff0c;是智慧城市建设的重要体现。在当前产业园区竞争日益激烈的情况下&#xff0c;越来越多的用户关注如何将项目打造成完善的智慧园区。 在智慧园区的建设过程中&#xff0c;各类…

PDF打印技巧:如何跳过不需要的页面?如何关闭打印权限?

作为打工人&#xff0c;经常需要打印各种文档&#xff0c;比如PDF文件。今天分享一下PDF文件的两个打印技巧&#xff0c;如果你还不知道&#xff0c;就一起来看看吧&#xff01; 技巧1&#xff1a;打印PDF如何跳过不需要的页面 有时候&#xff0c;一个PDF文件有很多页&#xf…

Golang | Leetcode Golang题解之第112题路径总和

题目&#xff1a; 题解&#xff1a; func hasPathSum(root *TreeNode, sum int) bool {if root nil {return false}if root.Left nil && root.Right nil {return sum root.Val}return hasPathSum(root.Left, sum - root.Val) || hasPathSum(root.Right, sum - roo…

AI率怎么降低?有哪些论文降重降AI率的工具和方法?

关于aigc降重怎么降重&#xff1f;论文降重有哪些方法&#xff1f;有没有好用的降重软件&#xff1f;网上很多大神都有回答&#xff0c;但是最近还是会有很多学弟学妹会问这些问题&#xff01; 有没有发现论文降重像玄学一样复杂&#xff1f;最近刚完成一篇论文&#xff0c;使…

【渗透测试】|基于dvwa的CSRF初级,中级,高级

一、渗透测试 二、渗透测试过程中遇到的问题和解决 在初级csrf中&#xff0c;想要通过伪造一个404页面&#xff0c;达到修改密码的效果 伪造404页面的html代码如下&#xff1a; <html> <head> </head> <body> <img src"http://192.xx.xx.xx/…

Docker是什么?使用场景作用及Docker的安装和启动详解

目录 Docker是什么&#xff1f; Docker的发展 Docker的安装 Docker使用 Docker的运行机制 第一个Docker容器 进入Docker容器 客户机访问容器 Docker是什么&#xff1f; Docker 是一个开源的应用容器引擎&#xff0c;基于 Go 语言 并遵从 Apache2.0 协议开源。 Docker …

Biological Psychiatry:内源性功能连接的特定模式与强迫症的伤害回避有关

摘要 强迫症(OCD)患者通常在没有实际威胁的情况下表现出持续的回避行为。强迫症对生活质量的影响和患者之间的异质性使得寻找新的大脑-行为干预目标十分有必要。基于啮齿类动物和非人灵长类动物持续回避行为的机制和解剖学研究&#xff0c;本研究的目标是测试持续回避行为相关…

本科java菜鸡,分享腾讯菜鸟京东面试经历

楼主本科菜鸡一个&#xff0c;菜鸟三面挂掉&#xff0c;腾讯二面就挂了&#xff0c;美团携程58集团的笔试做过之后全部都石沉大海&#xff0c;现在实在缺乏实力追求选择空间&#xff0c;望大佬不要嘲笑。这里给大家分享一波面经造福后仁吧。 菜鸟网络 菜鸟是我2月27号就找学长…

什么是抗压能力?如何判断自己的抗压能力?

什么是抗压能力&#xff1f; 抗压能力&#xff0c;也叫心理承受能力&#xff0c;指的是面对外界的压力&#xff0c;逆境&#xff0c;困境和挑战&#xff0c;能够有效的调整自己的心态&#xff0c;有效的应对和解决问题的能力。 抗压能力涉及多个方面&#xff0c;比如&#xf…

cesium 地形加载

1.效果图&#xff1a; 2.cesium 的基础配置 //无token会导致球体无法显示 Cesium.Ion.defaultAccessToken "your token"; // 官网网配置的tokenvar viewer new Cesium.Viewer(cesiumContainer, {geocoder: false,//控制地图是否显示一个地理编码&#xff08;geocodi…

apexcharts数据可视化之雷达图

apexcharts数据可视化之雷达图 有完整配套的Python后端代码。 本教程主要会介绍如下图形绘制方式&#xff1a; 基础雷达图多组数据雷达图雷达图标记点 基础雷达图 import ApexChart from react-apexcharts;export function BasicRadar() {// 数据序列const series [{name…

香橙派OrangePi AIpro上手笔记——之USB摄像头目标检测方案测试(一)

整期笔记索引 香橙派OrangePi AIpro上手笔记——之USB摄像头目标检测方案测试&#xff08;一&#xff09; 香橙派OrangePi AIpro上手笔记——之USB摄像头目标检测方案测试&#xff08;二&#xff09; Orange Pi AIPro开发板&#xff1a;昇腾AI处理器的强劲性能与广泛应用前景 在…

Java-文件操作

一、创建文件 1.创建文件夹 创建文件夹时&#xff0c;注意两个条件&#xff0c;该路径对应的是否为目录&#xff08;dir&#xff09;&#xff0c;该文件夹是否存在。 File Apathnew File("./文件夹A"); //当前路径文件夹的存储路径if(!Apath.exists() &&am…

Midjourney如何控制光照?提示词灵感来了!

提示&#xff1a;文章写完后&#xff0c;目录可以自动生成&#xff0c;如何生成可参考右边的帮助文档 Midjourney如何控制光照&#xff1f;提示词灵感来了&#xff01;文章目录 前言总结 前言 Midjourney v6 已经更新好久了&#xff0c;你知道有哪些可以控制光照效果的关键词吗…

为什么宋以前权臣篡位多、宋以后权臣篡位少?

时代不同&#xff0c;主要问题也不同。天下的大气候&#xff0c;自然就要左右王朝的小气候。权臣篡位&#xff0c;得先有权臣。但是&#xff0c;如果当权臣都没有了&#xff0c;又怎么可能有权臣篡位呢&#xff1f;这是一个社会基础的变化。宋以后的主要矛盾是中原和草原的争锋…

Dify快速接入微信

一、Dify简介 项目官网&#xff1a;Dify.AI 生成式 AI 应用创新引擎 Dify 是一款开源的大语言模型(LLM) 应用开发平台。它融合了后端即服务&#xff08;Backend as Service&#xff09;和 LLMOps 的理念&#xff0c;使开发者可以快速搭建生产级的生成式 AI 应用。即使你是非…