Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: kinect scans ? #17

Open
Randa-Almadhoun opened this issue Sep 16, 2015 · 1 comment
Open

Question: kinect scans ? #17

Randa-Almadhoun opened this issue Sep 16, 2015 · 1 comment

Comments

@Randa-Almadhoun
Copy link

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

@mdfirman
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants