Hi, I followed your steps in your video, but I didn't get the expected result.
https://www.youtube.com/watch?v=Edk9uA5Yl5k&feature=youtu.be
I am not sure whether my steps were correct because I can't see what you typed on your keyboard. I have some questions w.r.t. your operation:
-
In your video from 8:23 to 8:25, which key did you press on the keyboard to step out the "registration image to object" process? I asked it because I typed 'ESC' on the keyboard to be out of the process. But it seems that the program can catch nothing after this operation.
-
I would like to know the whole process of how to use your program. Please correct the process I describe below:
-
Open the blend file you upload
-
import image_object_registration module
-
deactivate the 'test camera' (I'm not sure whether it is necessary to do this step. I watched from your video)
-
run 'Run me!' script
import sys
sys.path.append(r'I:\Blender_old\blender-2.78-windows64\2.78\scripts\modules\image_object_registration.py')
import image_object_registration
image_object_registration.register()
- call out the panel of "registration image to object"
- select 6 pairs of points in images and 3D model
- Here I DON'T KNOW what to input to be out of the selecting points process, but I pressed 'Esc' on keyboard.
- active the 'test camera' (I'm not sure whether it is necessary to do this step)
- run the script 'Camera matrix test'
import bpy
import image_object_registration as IOR
C = bpy.context
#these functions are useful!!
#get_blender_camera_from_3x4_P
#get_calibration_matrix_K_from_blender
#get_3x4_RT_matrix_from_blender
#get_3x4_P_matrix_from_blender
if C.object.type != 'CAMERA':
print('not a camera')
else:
P, K, RT = IOR.get_3x4_P_matrix_from_blender(C.object)
print(P)
IOR.get_blender_camera_from_3x4_P(P, 1)
- activate the 'CamFrom3x4PObj' camera
- view through the 'CamFrom3x4PObj' camera, then I would have seen the aligned image of 3D model as same as the 2D image. But nothing changed. Here is the images:

Could you let me know where I am wrong? I have taken one night to explore your program. I would be really grateful if you could correct me. Thanks.
Hi, I followed your steps in your video, but I didn't get the expected result.
https://www.youtube.com/watch?v=Edk9uA5Yl5k&feature=youtu.be
I am not sure whether my steps were correct because I can't see what you typed on your keyboard. I have some questions w.r.t. your operation:
In your video from 8:23 to 8:25, which key did you press on the keyboard to step out the "registration image to object" process? I asked it because I typed 'ESC' on the keyboard to be out of the process. But it seems that the program can catch nothing after this operation.
I would like to know the whole process of how to use your program. Please correct the process I describe below:
Open the blend file you upload
import image_object_registration module
deactivate the 'test camera' (I'm not sure whether it is necessary to do this step. I watched from your video)
run 'Run me!' script
Could you let me know where I am wrong? I have taken one night to explore your program. I would be really grateful if you could correct me. Thanks.