blensor icon indicating copy to clipboard operation
blensor copied to clipboard

Question: kinect scans ?

Open Randa-Almadhoun opened this issue 10 years ago • 1 comments

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??

Randa-Almadhoun avatar Sep 16 '15 07:09 Randa-Almadhoun

Hi there, did you make any progress with this?

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.

mdfirman avatar Sep 19 '16 14:09 mdfirman