浏览代码

adjust laneATT image input size

liyupeng 1 年之前
父节点
当前提交
2d69b8c4e9
共有 3 个文件被更改,包括 6 次插入3 次删除
  1. 3 0
      README.md
  2. 1 1
      src/decition/laneline_decition_brain_sf_changan_shenlan/README.md
  3. 2 2
      src/detection/laneATT_trt/main.cpp

+ 3 - 0
README.md

@@ -43,3 +43,6 @@
   > DEFINES += MODULECOMM_NO_FASTRTPS屏蔽掉,这样就不需要
     libfastcdr.so libfastrtps .so libtinyxml2.so这三个库了。
 
+11.如果编译某个模块,报错:c++: internal compiler error: Segmentation fault (program cc1plus) 
+  > 修改系统设置限制:sudo gedit /etc/security/limits.conf,将所有stack大小设置为4096
+  > 重启系统,sudo reboot

+ 1 - 1
src/decition/laneline_decition_brain_sf_changan_shenlan/README.md

@@ -27,7 +27,7 @@
 
 1. 车道线检测模块运行需要车道线检测模型文件和图像透视变换配置文件,确保文件存放路径正确。
 2. 图像透视变换标定,目的是实现图像坐标系到世界坐标系的转换。标定步骤如下。
-   1. 运行show_coordinate_new.py文件(home文件夹下),在文件所在路径下打开命令行,运行命令`python3 show_coordinate_new.py `。
+   1. 运行show_coordinate_new.py文件在文件所在路径下打开命令行,运行命令`python3 show_coordinate_new.py `。
    2. 观察显示的视频画面,选定车道线检测的ROI。
    3. 在两侧车道线上放置4个标记物,要求:在图像中,近车端标记物靠近车前盖但不被其遮盖,远车端标记物距离近车端标记物为10米。
    4. 按下q键,在图像中点出4个标记物位置,并记录下左上、左下、右上、右下四个点像素坐标。

+ 2 - 2
src/detection/laneATT_trt/main.cpp

@@ -17,8 +17,8 @@
 #include "lanearray.pb.h"
 #include "imageBuffer.h"
 
-#define INPUT_H 360
-#define INPUT_W 640
+#define INPUT_H 720
+#define INPUT_W 1280
 #define N_OFFSETS 72
 #define N_STRIPS (N_OFFSETS - 1)
 #define MAX_COL_BLOCKS 1000