1
This commit is contained in:
@@ -1,2 +0,0 @@
|
|||||||
[ZoneTransfer]
|
|
||||||
ZoneId=3
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
[ZoneTransfer]
|
|
||||||
ZoneId=3
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
[ZoneTransfer]
|
|
||||||
ZoneId=3
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
[ZoneTransfer]
|
|
||||||
ZoneId=3
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
[ZoneTransfer]
|
|
||||||
ZoneId=3
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
[ZoneTransfer]
|
|
||||||
ZoneId=3
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
[ZoneTransfer]
|
|
||||||
ZoneId=3
|
|
||||||
@@ -45,7 +45,7 @@ void output_control_data(const cv::Point2f* ballistic_point,
|
|||||||
else if (target_color == "blue") simplified_color = "b";
|
else if (target_color == "blue") simplified_color = "b";
|
||||||
|
|
||||||
// Construct send string (original format)
|
// Construct send string (original format)
|
||||||
send_str << "#s " << simplified_color << " " << std::to_string(ballistic_offset_x) << " " << std::to_string(ballistic_offset_y) << "*\n";
|
send_str << "#s " << simplified_color << " " << std::to_string(ballistic_offset_yaw) << " " << std::to_string(ballistic_offset_pitch) << "*\n";
|
||||||
|
|
||||||
// Send data
|
// Send data
|
||||||
if (ttl_communicator != nullptr) {
|
if (ttl_communicator != nullptr) {
|
||||||
@@ -298,9 +298,9 @@ int main(int /*argc*/, char* /*argv*/[]) {
|
|||||||
output_control_data(display_center, target_color, ttl, img_center, use_ttl);
|
output_control_data(display_center, target_color, ttl, img_center, use_ttl);
|
||||||
|
|
||||||
// Display windows
|
// Display windows
|
||||||
cv::imshow("Armor Detection", frame);
|
|
||||||
cv::imshow(target_color + " Mask", mask);
|
cv::imshow(target_color + " Mask", mask);
|
||||||
cv::imshow(target_color + " Only", color_only_frame);
|
cv::imshow(target_color + " Only", color_only_frame);
|
||||||
|
cv::imshow("Armor Detection", frame);
|
||||||
|
|
||||||
// Exit on 'q' key press
|
// Exit on 'q' key press
|
||||||
if (cv::waitKey(1) == 'q') {
|
if (cv::waitKey(1) == 'q') {
|
||||||
|
|||||||
Reference in New Issue
Block a user