修改相机json,图像接入算法和通讯
parent
952bce1b85
commit
00cd7ff62c
@ -0,0 +1,222 @@
|
||||
{
|
||||
"devices": {
|
||||
"LP-OCM-R060GC 00J50359918": {
|
||||
"algorithm": 1,
|
||||
"algorithm_dll": 1,
|
||||
"auto_open": false,
|
||||
"auto_push": true,
|
||||
"balanceRatio": 1868,
|
||||
"balanceRatioSelector": 0,
|
||||
"board_config_file": "",
|
||||
"board_name": "",
|
||||
"board_num": 0,
|
||||
"board_type": 64,
|
||||
"camera_file": "",
|
||||
"exposure": 50000,
|
||||
"folder": "model5\\",
|
||||
"format": "None",
|
||||
"frame_rate": 7.400000095367432,
|
||||
"gain": 1.0052000284194946,
|
||||
"height": 2048,
|
||||
"id": 5,
|
||||
"loop": 1,
|
||||
"mac_address": "",
|
||||
"offset_x": 0,
|
||||
"offset_y": 0,
|
||||
"param_policy": 2,
|
||||
"rely_on_camera": "",
|
||||
"rotation_angle": 90,
|
||||
"save": 0,
|
||||
"save_img_suffix": ".JPG",
|
||||
"savefile_rgb_swapped": false,
|
||||
"showname": "相机五",
|
||||
"trigger_source": "Line0",
|
||||
"type": 140,
|
||||
"width": 3072,
|
||||
"zoom": 1
|
||||
},
|
||||
"LP-OCM-R060GC 00J50359922": {
|
||||
"algorithm": 1,
|
||||
"algorithm_dll": 1,
|
||||
"auto_open": false,
|
||||
"auto_push": true,
|
||||
"balanceRatio": 0,
|
||||
"balanceRatioSelector": 0,
|
||||
"board_config_file": "",
|
||||
"board_name": "",
|
||||
"board_num": 0,
|
||||
"board_type": 64,
|
||||
"camera_file": "",
|
||||
"exposure": 25000,
|
||||
"folder": "model1\\",
|
||||
"format": "None",
|
||||
"frame_rate": 9.3,
|
||||
"gain": 1,
|
||||
"height": 2048,
|
||||
"id": 1,
|
||||
"loop": 1,
|
||||
"mac_address": "",
|
||||
"offset_x": 0,
|
||||
"offset_y": 0,
|
||||
"param_policy": 2,
|
||||
"rely_on_camera": "",
|
||||
"rotation_angle": 0,
|
||||
"save": 1,
|
||||
"save_img_suffix": ".JPG",
|
||||
"savefile_rgb_swapped": false,
|
||||
"showname": "相机一",
|
||||
"trigger_source": "Line0",
|
||||
"type": 140,
|
||||
"width": 3072,
|
||||
"zoom": 1
|
||||
},
|
||||
"LP-OCM-R060GC 00J50359923": {
|
||||
"algorithm": 1,
|
||||
"algorithm_dll": 1,
|
||||
"auto_open": false,
|
||||
"auto_push": true,
|
||||
"balanceRatio": 0,
|
||||
"balanceRatioSelector": 0,
|
||||
"board_config_file": "",
|
||||
"board_name": "",
|
||||
"board_num": 0,
|
||||
"board_type": 64,
|
||||
"camera_file": "",
|
||||
"exposure": 25000,
|
||||
"folder": "model4\\",
|
||||
"format": "None",
|
||||
"frame_rate": 7.400000095367432,
|
||||
"gain": 0,
|
||||
"height": 2048,
|
||||
"id": 4,
|
||||
"loop": 1,
|
||||
"mac_address": "",
|
||||
"offset_x": 0,
|
||||
"offset_y": 0,
|
||||
"param_policy": 2,
|
||||
"rely_on_camera": "",
|
||||
"rotation_angle": 0,
|
||||
"save": 1,
|
||||
"save_img_suffix": ".JPG",
|
||||
"savefile_rgb_swapped": false,
|
||||
"showname": "相机四",
|
||||
"trigger_source": "Line0",
|
||||
"type": 140,
|
||||
"width": 3072,
|
||||
"zoom": 1
|
||||
},
|
||||
"LP-OCM-R060GC 00J50359927": {
|
||||
"algorithm": 1,
|
||||
"algorithm_dll": 1,
|
||||
"auto_open": false,
|
||||
"auto_push": true,
|
||||
"balanceRatio": 0,
|
||||
"balanceRatioSelector": 0,
|
||||
"board_config_file": "",
|
||||
"board_name": "",
|
||||
"board_num": 0,
|
||||
"board_type": 64,
|
||||
"camera_file": "",
|
||||
"exposure": 25000,
|
||||
"folder": "model2\\",
|
||||
"format": "None",
|
||||
"frame_rate": 7.400000095367432,
|
||||
"gain": 0,
|
||||
"height": 2048,
|
||||
"id": 2,
|
||||
"loop": 1,
|
||||
"mac_address": "",
|
||||
"offset_x": 0,
|
||||
"offset_y": 0,
|
||||
"param_policy": 2,
|
||||
"rely_on_camera": "",
|
||||
"rotation_angle": 0,
|
||||
"save": 1,
|
||||
"save_img_suffix": ".JPG",
|
||||
"savefile_rgb_swapped": false,
|
||||
"showname": "相机二",
|
||||
"trigger_source": "Line0",
|
||||
"type": 140,
|
||||
"width": 3072,
|
||||
"zoom": 1
|
||||
},
|
||||
"LP-OCM-R060GC 00J50359938": {
|
||||
"algorithm": 1,
|
||||
"algorithm_dll": 1,
|
||||
"auto_open": false,
|
||||
"auto_push": true,
|
||||
"balanceRatio": 0,
|
||||
"balanceRatioSelector": 0,
|
||||
"board_config_file": "",
|
||||
"board_name": "",
|
||||
"board_num": 0,
|
||||
"board_type": 64,
|
||||
"camera_file": "",
|
||||
"exposure": 25000,
|
||||
"folder": "model3\\",
|
||||
"format": "None",
|
||||
"frame_rate": 7.400000095367432,
|
||||
"gain": 0,
|
||||
"height": 2048,
|
||||
"id": 3,
|
||||
"loop": 1,
|
||||
"mac_address": "",
|
||||
"offset_x": 0,
|
||||
"offset_y": 0,
|
||||
"param_policy": 2,
|
||||
"rely_on_camera": "",
|
||||
"rotation_angle": 0,
|
||||
"save": 1,
|
||||
"save_img_suffix": ".JPG",
|
||||
"savefile_rgb_swapped": false,
|
||||
"showname": "相机三",
|
||||
"trigger_source": "Line0",
|
||||
"type": 140,
|
||||
"width": 3072,
|
||||
"zoom": 1
|
||||
},
|
||||
"LP-OCM-R060GC 00J50359945": {
|
||||
"algorithm": 1,
|
||||
"algorithm_dll": 1,
|
||||
"auto_open": false,
|
||||
"auto_push": true,
|
||||
"balanceRatio": 0,
|
||||
"balanceRatioSelector": 0,
|
||||
"board_config_file": "",
|
||||
"board_name": "",
|
||||
"board_num": 0,
|
||||
"board_type": 64,
|
||||
"camera_file": "",
|
||||
"exposure": 50000,
|
||||
"folder": "model6\\",
|
||||
"format": "None",
|
||||
"frame_rate": 7.400000095367432,
|
||||
"gain": 0,
|
||||
"height": 2048,
|
||||
"id": 6,
|
||||
"loop": 1,
|
||||
"mac_address": "",
|
||||
"offset_x": 0,
|
||||
"offset_y": 0,
|
||||
"param_policy": 2,
|
||||
"rely_on_camera": "",
|
||||
"rotation_angle": 270,
|
||||
"save": 0,
|
||||
"save_img_suffix": ".JPG",
|
||||
"savefile_rgb_swapped": false,
|
||||
"showname": "相机六",
|
||||
"trigger_source": "Line0",
|
||||
"type": 140,
|
||||
"width": 3072,
|
||||
"zoom": 1
|
||||
}
|
||||
},
|
||||
"top": {
|
||||
"startID": 5,
|
||||
"endID": 6
|
||||
},
|
||||
"side": {
|
||||
"startID": 1,
|
||||
"endID": 4
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 18 MiB |
Binary file not shown.
|
After Width: | Height: | Size: 2.2 MiB |
@ -1,30 +0,0 @@
|
||||
Debug | 2024-01-03 17:13:11 ÖÜÈý | Decode smokeInfo from "D:/Code/Logistics/smokeboxidentification/runner17/Release\\user\\smokeInfo.xlsx" successed
|
||||
Debug | 2024-01-03 17:13:11 ÖÜÈý | "D:/Code/Logistics/smokeboxidentification/runner17/Release\\templateNum" has not folder
|
||||
Warning | 2024-01-03 17:13:11 ÖÜÈý | SerialNumber: "00J50359922" init failed
|
||||
Warning | 2024-01-03 17:13:11 ÖÜÈý | QObject::moveToThread: Cannot move objects with a parent
|
||||
Warning | 2024-01-03 17:13:12 ÖÜÈý | SerialNumber: "00J50359927" init failed
|
||||
Warning | 2024-01-03 17:13:12 ÖÜÈý | SerialNumber: "00J50359938" init failed
|
||||
Warning | 2024-01-03 17:13:12 ÖÜÈý | SerialNumber: "00J50359923" init failed
|
||||
Warning | 2024-01-03 17:13:12 ÖÜÈý | SerialNumber: "00J50359918" init failed
|
||||
Warning | 2024-01-03 17:13:13 ÖÜÈý | SerialNumber: "00J50359945" init failed
|
||||
Debug | 2024-01-03 17:13:13 ÖÜÈý | m_vecPCamera size: 0
|
||||
Debug | 2024-01-03 17:13:13 ÖÜÈý | init CategoryMatcher successed
|
||||
Debug | 2024-01-03 17:13:14 ÖÜÈý | delete netControl
|
||||
Debug | 2024-01-03 17:13:14 ÖÜÈý | delete netControl finished
|
||||
Debug | 2024-01-03 17:16:05 ÖÜÈý | Decode smokeInfo from "D:/Code/Logistics/smokeboxidentification/runner17/Release\\user\\smokeInfo.xlsx" successed
|
||||
Debug | 2024-01-03 17:16:05 ÖÜÈý | "D:/Code/Logistics/smokeboxidentification/runner17/Release\\templateNum" has not folder
|
||||
Warning | 2024-01-03 17:16:05 ÖÜÈý | SerialNumber: "00J50359922" init failed
|
||||
Warning | 2024-01-03 17:16:06 ÖÜÈý | QObject::moveToThread: Cannot move objects with a parent
|
||||
Debug | 2024-01-03 17:16:06 ÖÜÈý | Sensor
|
||||
Debug | 2024-01-03 17:16:06 ÖÜÈý | CodeScan
|
||||
Debug | 2024-01-03 17:16:06 ÖÜÈý | connect yidadui
|
||||
Warning | 2024-01-03 17:16:06 ÖÜÈý | SerialNumber: "00J50359927" init failed
|
||||
Warning | 2024-01-03 17:16:06 ÖÜÈý | SerialNumber: "00J50359938" init failed
|
||||
Warning | 2024-01-03 17:16:06 ÖÜÈý | SerialNumber: "00J50359923" init failed
|
||||
Warning | 2024-01-03 17:16:06 ÖÜÈý | SerialNumber: "00J50359918" init failed
|
||||
Warning | 2024-01-03 17:16:07 ÖÜÈý | SerialNumber: "00J50359945" init failed
|
||||
Debug | 2024-01-03 17:16:07 ÖÜÈý | m_vecPCamera size: 0
|
||||
Debug | 2024-01-03 17:16:07 ÖÜÈý | init CategoryMatcher successed
|
||||
Debug | 2024-01-03 17:16:07 ÖÜÈý | over
|
||||
Debug | 2024-01-03 17:16:09 ÖÜÈý | delete netControl
|
||||
Debug | 2024-01-03 17:16:09 ÖÜÈý | delete netControl finished
|
||||
@ -0,0 +1,73 @@
|
||||
Info | 2024-01-09 18:16:14 周二 | initCamera
|
||||
Debug | 2024-01-09 18:16:14 周二 | Decode smokeInfo from "D:/Code/Logistics/smokeboxidentification/runner17/Release\\user\\smokeInfo.xlsx" successed
|
||||
Debug | 2024-01-09 18:16:14 周二 | "D:/Code/Logistics/smokeboxidentification/runner17/Release\\templateNum" has not folder
|
||||
Debug | 2024-01-09 18:16:15 周二 | Find device: "00787720450"
|
||||
Debug | 2024-01-09 18:16:15 周二 | m_vecPCamera size: 1
|
||||
Warning | 2024-01-09 18:16:15 周二 | QObject::moveToThread: Cannot move objects with a parent
|
||||
Debug | 2024-01-09 18:16:16 周二 | init CategoryMatcher successed
|
||||
Debug | 2024-01-09 18:16:16 周二 | NetControl::onConnected
|
||||
TPTcpClient::slotConnected
|
||||
Debug | 2024-01-09 18:16:16 周二 | 网络连接成功!!!
|
||||
Debug | 2024-01-09 18:16:16 周二 | Open camera: "00787720450" successed
|
||||
Debug | 2024-01-09 18:16:16 周二 | Start camera: "00787720450" successed
|
||||
Debug | 2024-01-09 18:16:16 周二 | Set device successed
|
||||
Debug | 2024-01-09 18:16:16 周二 | Set camera: "00787720450" software trigger successed
|
||||
Warning | 2024-01-09 18:16:18 周二 | i receive data from server: "GP&6&111&2121&1&310102&25>"
|
||||
Debug | 2024-01-09 18:16:18 周二 | msg: "GP&6&111&2121&1&310102&25>" content: "GP&6&111&2121&1&310102&25"
|
||||
Debug | 2024-01-09 18:16:18 周二 | strlist length: 7 head: "GP"
|
||||
Info | 2024-01-09 18:16:18 周二 | [captureSide]: Enter
|
||||
Info | 2024-01-09 18:16:18 周二 | [onCapture]: Enter
|
||||
Info | 2024-01-09 18:16:18 周二 | [onCapture]: cameraLocation = 0
|
||||
Info | 2024-01-09 18:16:18 周二 | [onCapture]: Out
|
||||
Debug | 2024-01-09 18:16:18 周二 | start capture, length: 1
|
||||
Debug | 2024-01-09 18:16:18 周二 | convert Mat successed!
|
||||
Debug | 2024-01-09 18:16:18 周二 | 不旋转
|
||||
Debug | 2024-01-09 18:16:18 周二 | [Camera]: Side Camera Captured.
|
||||
Debug | 2024-01-09 18:16:18 周二 | Save image: ".\\fileData\\intoStock\\1.BMP"
|
||||
Debug | 2024-01-09 18:16:18 周二 | "Camera 00787720450 Match Start ..."
|
||||
Info | 2024-01-09 18:16:18 周二 | "Camera 00787720450 SetImageData OK!"
|
||||
Critical | 2024-01-09 18:16:18 周二 | strList.last() = "11"
|
||||
Critical | 2024-01-09 18:16:18 周二 | jieduan = "1"
|
||||
Critical | 2024-01-09 18:16:18 周二 | level = 1
|
||||
Debug | 2024-01-09 18:16:18 周二 | Get TemplateImg OK!
|
||||
Debug | 2024-01-09 18:16:18 周二 | templateLevel = 1
|
||||
Info | 2024-01-09 18:16:18 周二 | level = 1
|
||||
Info | 2024-01-09 18:16:18 周二 | templateImgPath = "./templateImg/310102/310102-11.bmp"
|
||||
Debug | 2024-01-09 18:16:18 周二 | Level == 1
|
||||
Info | 2024-01-09 18:16:19 周二 | valueMaxScore = 97.147
|
||||
Info | 2024-01-09 18:16:19 周二 | indexMaxScore = true
|
||||
Info | 2024-01-09 18:16:19 周二 | 5
|
||||
Debug | 2024-01-09 18:16:19 周二 | "Camera 00787720450 Match successful!"
|
||||
Info | 2024-01-09 18:16:19 周二 | fileName "1_310102_rlt.BMP"
|
||||
Info | 2024-01-09 18:16:19 周二 | filePath ".\\fileData\\2121\\1_310102_rlt.BMP"
|
||||
Warning | 2024-01-09 18:16:22 周二 | i receive data from server: "GP&6&111&2121&1&310102&25>"
|
||||
Debug | 2024-01-09 18:16:22 周二 | msg: "GP&6&111&2121&1&310102&25>" content: "GP&6&111&2121&1&310102&25"
|
||||
Debug | 2024-01-09 18:16:22 周二 | strlist length: 7 head: "GP"
|
||||
Info | 2024-01-09 18:16:22 周二 | [captureSide]: Enter
|
||||
Info | 2024-01-09 18:16:22 周二 | [onCapture]: Enter
|
||||
Info | 2024-01-09 18:16:22 周二 | [onCapture]: cameraLocation = 0
|
||||
Info | 2024-01-09 18:16:22 周二 | [onCapture]: Out
|
||||
Debug | 2024-01-09 18:16:22 周二 | start capture, length: 1
|
||||
Debug | 2024-01-09 18:16:22 周二 | convert Mat successed!
|
||||
Debug | 2024-01-09 18:16:22 周二 | 不旋转
|
||||
Debug | 2024-01-09 18:16:22 周二 | [Camera]: Side Camera Captured.
|
||||
Debug | 2024-01-09 18:16:22 周二 | Save image: ".\\fileData\\intoStock\\1.BMP"
|
||||
Debug | 2024-01-09 18:16:22 周二 | "Camera 00787720450 Match Start ..."
|
||||
Info | 2024-01-09 18:16:22 周二 | "Camera 00787720450 SetImageData OK!"
|
||||
Critical | 2024-01-09 18:16:22 周二 | strList.last() = "11"
|
||||
Critical | 2024-01-09 18:16:22 周二 | jieduan = "1"
|
||||
Critical | 2024-01-09 18:16:22 周二 | level = 1
|
||||
Debug | 2024-01-09 18:16:22 周二 | Get TemplateImg OK!
|
||||
Debug | 2024-01-09 18:16:22 周二 | templateLevel = 1
|
||||
Info | 2024-01-09 18:16:22 周二 | level = 1
|
||||
Info | 2024-01-09 18:16:22 周二 | templateImgPath = "./templateImg/310102/310102-11.bmp"
|
||||
Debug | 2024-01-09 18:16:22 周二 | Level == 1
|
||||
Info | 2024-01-09 18:16:22 周二 | valueMaxScore = 97.147
|
||||
Info | 2024-01-09 18:16:22 周二 | indexMaxScore = true
|
||||
Info | 2024-01-09 18:16:22 周二 | 5
|
||||
Debug | 2024-01-09 18:16:22 周二 | "Camera 00787720450 Match successful!"
|
||||
Info | 2024-01-09 18:16:22 周二 | fileName "1_310102_rlt.BMP"
|
||||
Info | 2024-01-09 18:16:22 周二 | filePath ".\\fileData\\2121\\1_310102_rlt.BMP"
|
||||
Debug | 2024-01-09 18:16:29 周二 | delete netControl
|
||||
Debug | 2024-01-09 18:16:29 周二 | NetControl::onDisconnected
|
||||
TPTcpClient::slotDisconnected
|
||||
Binary file not shown.
Binary file not shown.
|
After Width: | Height: | Size: 21 KiB |
@ -1,13 +0,0 @@
|
||||
#include "QModuleChoice.h"
|
||||
|
||||
QModuleChoice::QModuleChoice(QWidget *parent)
|
||||
: QWidget(parent)
|
||||
, ui(new Ui::QModuleChoiceClass())
|
||||
{
|
||||
ui->setupUi(this);
|
||||
}
|
||||
|
||||
QModuleChoice::~QModuleChoice()
|
||||
{
|
||||
delete ui;
|
||||
}
|
||||
@ -1,20 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
#include <QWidget>
|
||||
#include "ui_QModuleChoice.h"
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
namespace Ui { class QModuleChoiceClass; };
|
||||
QT_END_NAMESPACE
|
||||
|
||||
class QModuleChoice : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
QModuleChoice(QWidget *parent = nullptr);
|
||||
~QModuleChoice();
|
||||
|
||||
private:
|
||||
Ui::QModuleChoiceClass *ui;
|
||||
};
|
||||
@ -1,50 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>QModuleChoiceClass</class>
|
||||
<widget class="QWidget" name="QModuleChoiceClass">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>190</width>
|
||||
<height>111</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>QModuleChoice</string>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<item row="1" column="0">
|
||||
<widget class="QCheckBox" name="checkBox_2">
|
||||
<property name="text">
|
||||
<string>扫码器</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="0">
|
||||
<widget class="QCheckBox" name="checkBox">
|
||||
<property name="text">
|
||||
<string>传感器</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="text">
|
||||
<string>请选择应用的模块:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="0">
|
||||
<widget class="QPushButton" name="pushButton">
|
||||
<property name="text">
|
||||
<string>确定</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<layoutdefault spacing="6" margin="11"/>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 2.2 MiB |
Loading…
Reference in New Issue