测试文件夹架构3
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
import numpy as np
|
import numpy as np
|
||||||
from config import ARMOR_WIDTH, ARMOR_HEIGHT # 装甲板尺寸(毫米)
|
from 新建文件夹.config import ARMOR_WIDTH, ARMOR_HEIGHT # 装甲板尺寸(毫米)
|
||||||
|
|
||||||
|
|
||||||
class BallisticPredictor:
|
class BallisticPredictor:
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
import cv2
|
import cv2
|
||||||
import numpy as np
|
import numpy as np
|
||||||
from config import (
|
from 新建文件夹.config import (
|
||||||
HORIZONTAL_ANGLE_THRESHOLD, NEARBY_LIGHT_BAR_THRESHOLD,
|
HORIZONTAL_ANGLE_THRESHOLD, NEARBY_LIGHT_BAR_THRESHOLD,
|
||||||
LIGHT_BAR_IOU_THRESHOLD, ARMOR_DISTANCE_RATIO_RANGE,
|
LIGHT_BAR_IOU_THRESHOLD, ARMOR_DISTANCE_RATIO_RANGE,
|
||||||
ARMOR_LENGTH_DIFF_RATIO, ARMOR_ANGLE_DIFF_THRESHOLD
|
ARMOR_LENGTH_DIFF_RATIO, ARMOR_ANGLE_DIFF_THRESHOLD
|
||||||
@@ -1,12 +1,12 @@
|
|||||||
import cv2
|
import cv2
|
||||||
import time
|
import time
|
||||||
from TTLCommunicator import TTLCommunicator # 导入入模块化的TTL通信类
|
from TTLCommunicator import TTLCommunicator # 导入入模块化的TTL通信类
|
||||||
from camera_utils import Camera
|
from 新建文件夹.camera_utils import Camera
|
||||||
from image_preprocessor import ImagePreprocessor
|
from 新建文件夹.image_preprocessor import ImagePreprocessor
|
||||||
from armor_detector import ArmorDetector
|
from 新建文件夹.armor_detector import ArmorDetector
|
||||||
from tracker import KalmanFilter
|
from tracker import KalmanFilter
|
||||||
from visualizer import Visualizer
|
from visualizer import Visualizer
|
||||||
from Center_Predicted import BallisticPredictor
|
from 新建文件夹.Center_Predicted import BallisticPredictor
|
||||||
|
|
||||||
|
|
||||||
def output_control_data(ballistic_point, target_color, frame_counter, ttl_communicator, img_center, use_ttl):
|
def output_control_data(ballistic_point, target_color, frame_counter, ttl_communicator, img_center, use_ttl):
|
||||||
Reference in New Issue
Block a user