Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
dyfcalid committed Jul 22, 2021
1 parent b9fb10c commit 67ad1b9
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 3 deletions.
Binary file modified IntrinsicCalibration/data/img_raw3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
31 changes: 30 additions & 1 deletion SurroundBirdEyeView/surroundBEV.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@
" \n",
" # 直接对图像进行单应性变换 \n",
" def warp_homography(self, img):\n",
" return cv2.warpPerspective(img, self.homography, (BEV_HEIGHT,BEV_WIDTH))\n",
" return cv2.warpPerspective(img, self.homography, (BEV_WIDTH,BEV_HEIGHT))\n",
" \n",
" # 利用单应性变换后的映射矩阵进行remap变换,速度更快\n",
" def raw2bev(self, img):\n",
Expand Down Expand Up @@ -489,6 +489,35 @@
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.6"
},
"varInspector": {
"cols": {
"lenName": 16,
"lenType": 16,
"lenVar": 40
},
"kernels_config": {
"python": {
"delete_cmd_postfix": "",
"delete_cmd_prefix": "del ",
"library": "var_list.py",
"varRefreshCmd": "print(var_dic_list())"
},
"r": {
"delete_cmd_postfix": ") ",
"delete_cmd_prefix": "rm(",
"library": "var_list.r",
"varRefreshCmd": "cat(var_dic_list()) "
}
},
"types_to_exclude": [
"module",
"function",
"builtin_function_or_method",
"instance",
"_Feature"
],
"window_display": false
}
},
"nbformat": 4,
Expand Down
4 changes: 2 additions & 2 deletions SurroundBirdEyeView/surroundBEV.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
parser.add_argument('-ch', '--CAR_HEIGHT', default=400, type=int, help='Car Frame Height')
parser.add_argument('-fs', '--FOCAL_SCALE', default=1, type=float, help='Camera Undistort Focal Scale')
parser.add_argument('-ss', '--SIZE_SCALE', default=2, type=float, help='Camera Undistort Size Scale')
parser.add_argument('-blend','--BLEND_FLAG', default=True, type=bool, help='Blend BEV Image (Ture/False)')
parser.add_argument('-blend','--BLEND_FLAG', default=False, type=bool, help='Blend BEV Image (Ture/False)')
parser.add_argument('-balance','--BALANCE_FLAG', default=False, type=bool, help='Balance BEV Image (Ture/False)')
args = parser.parse_args()

Expand Down Expand Up @@ -111,7 +111,7 @@ def undistort(self, img):
return cv2.remap(img, *self.undistort_maps, interpolation = cv2.INTER_LINEAR)

def warp_homography(self, img):
return cv2.warpPerspective(img, self.homography, (BEV_HEIGHT,BEV_WIDTH))
return cv2.warpPerspective(img, self.homography, (BEV_WIDTH,BEV_HEIGHT))

def raw2bev(self, img):
return cv2.remap(img, *self.bev_maps, interpolation = cv2.INTER_LINEAR)
Expand Down

0 comments on commit 67ad1b9

Please sign in to comment.