'NoneType' object has no attribute '__getitem__' when using image_geometry: python, ROS, opencv

ساخت وبلاگ

Vote count: 0

So I was trying to convert pixel to spatial coordinates when i found the package image_geometry. So i decided i would try to use it, i initialized it, and called the desired function, taken fro the API. Here's what i did

import image_geometry
from image_geometry import PinholeCameraModel
self.img_geo = PinholeCameraModel()
(r_x,r_y,r_z) = self.img_geo.projectPixelTo3dRay((359,285))
print(r_x)

Obviously the self.img_geo is in my init function and then later on i use the projection function, and then get that error. Any ideas whats wrong?

asked 24 secs ago

back soft...
ما را در سایت back soft دنبال می کنید

برچسب : نویسنده : استخدام کار backsoft بازدید : 271 تاريخ : دوشنبه 31 خرداد 1395 ساعت: 20:41