shichaoy / pop_up_image

Real-time 3D Scene Layout from a Single Image Using Convolutional Neural Networks
Other
108 stars 40 forks source link

problem about operating system #5

Closed izengpan closed 5 years ago

izengpan commented 6 years ago

Hello, your codes were ran in ubuntu14.04+ROS indigo. Have you ever tried them on ubuntu16.04+ROS? Thanks for your reply.

shichaoy commented 6 years ago

Hi, I haven't tried. I think it should should work. You can post here if you meet problems.

izengpan commented 6 years ago

/root/catkin_ws/src/pop_up_image/numpy_opencv/src/utils/conversion.cpp:182:16: error: cannot declare variable ‘g_numpyAllocator’ to be of abstract type ‘NumpyAllocator’ NumpyAllocator g_numpyAllocator;


have you ever encountered this problem?

izengpan commented 6 years ago

/root/catkin_ws/src/pop_up_image/numpy_opencv/src/utils/conversion.cpp:280:16: error: ‘class cv::Mat’ has no member named ‘refcount’ m.refcount() = refcountFromPyObject(o);


This is another problem when running the codes. Please have a look. thanks

shichaoy commented 6 years ago

Hi, numpy_opencv is an external package, I used it just to convert numpy array between opencv mat as there is some small python function I could not find replacement in c++. I looked at their original repo and found similar problem due to opencv3 as yours: https://github.com/spillai/numpy-opencv-converter/issues/9 seems people provided solution at the end. So maybe you should look at that.

izengpan commented 6 years ago

Thanks for your quick reply! And I have solved my problem with the suggestions.