You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I'm trying to use BlenSor tool to collect scans of a mesh using kinect. The mesh is loaded to a .blend file . I'm using BlenSor on Ubuntu 14.04 64bit.
I modified the python script example provided on BlenSor website and it includes the following:
import bpy
from bpy import data as D
from bpy import context as C
from mathutils import *
from math import *
import numpy as np
import blensor
when I run the python script in Blender or in command line it returns the following error:
File "/home/randa/Desktop/Blensortest/blensor/2.74/scripts/addons/blensor/kinect.py", line 295, in scan_advanced
all_quantized_disparities[projector_idx] = disparity_quantized
IndexError: index 3200818124 is out of bounds for axis 0 with size 307200
The location and orientation of the camera are visualized and accordingly the script should for sure return a scan. When I slightly modified the location to (-2,-3,-6), it returned a scan.
so what could be the problem?Is there something missing in the parameters of scan_advanced??
The text was updated successfully, but these errors were encountered:
I'm having the same error when I try scripting Kinect rendering. However, when I load the same .blend file into blensor and render 'manually' from the same location I don't get the error.
Hi,
I'm trying to use BlenSor tool to collect scans of a mesh using kinect. The mesh is loaded to a .blend file . I'm using BlenSor on Ubuntu 14.04 64bit.
I modified the python script example provided on BlenSor website and it includes the following:
import bpy
from bpy import data as D
from bpy import context as C
from mathutils import *
from math import *
import numpy as np
import blensor
scanner = bpy.data.objects["Camera"]
scanner.location = (-2,-3,-7)
scanner.rotation_euler = (2.4674, -0.371874, -0.985201)
blensor.kinect.scan_advanced(scanner, evd_file="/home/randa/Desktop/scans/scan1.pcd")
when I run the python script in Blender or in command line it returns the following error:
File "/home/randa/Desktop/Blensortest/blensor/2.74/scripts/addons/blensor/kinect.py", line 295, in scan_advanced
all_quantized_disparities[projector_idx] = disparity_quantized
IndexError: index 3200818124 is out of bounds for axis 0 with size 307200
The location and orientation of the camera are visualized and accordingly the script should for sure return a scan. When I slightly modified the location to (-2,-3,-6), it returned a scan.
so what could be the problem?Is there something missing in the parameters of scan_advanced??
The text was updated successfully, but these errors were encountered: