Forum

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - lmg

Pages: [1]
1
Bug Reports / installation problems on Debian 7.1
« on: September 12, 2016, 06:42:33 PM »
I have tried to install photoscan pro on a debian 7.1 OS.
I have unpacked the downloaded archive in a folder. Trying to start PhotoScan by running photoscan.sh script from the program folder I cannot lunch the program, but this in the answer of the computer:

root@dimeg229:/home/cnc/photoscan-pro# ./photoscan.sh
/home/cnc/photoscan-pro/./photoscan: 1: /home/cnc/photoscan-pro/./photoscan: Syntax error: word unexpected (expecting ")")
root@dimeg229:/home/cnc/photoscan-pro#

How can I solve the problem?
Thank you for your answer.

2
Python and Java API / saving file with scripts
« on: September 09, 2014, 09:10:15 AM »
Saving the .psz file in a python script with the commands:

path="C:/Users/Public/Documents/images"
file_name="Acquis_0"
file_n=path+"/"+file_name+".psz"       
doc.save(file_n, compression = 6, absolute_paths = False)        # Saving the project


in the main window of Photoscan the file remains “Untitled”, and if you wish to make any further modification interactively after the python running, you must then search the directory and give manually the file name that what was already specified as “file_n” in the python, to overwrite the same file .psz.
Is there any python command that updates the file name and the working directory of the interactive main photoscan window?



3
I am using a python procedure to export  4 pre-calibrated and aligned cameras in a file named c01_c04.xml, and their  spatial positions and orientations in another file named c01_c04.txt.
The spatial positions are calculated using targets having known coordinates.
I wish to use the same cameras for other projects, using the tool "Import Cameras" to import the c01_c04.xml file, and the "Ground control" Import to load the c01_c04.txt file, because I wish to align the photos using the ground control option.
Unfortunately the "ground_control.save" python command exports only the estimated camera positions, and if I try to use, as in the attached examples,  the  "ground_control.load" to import the saved positions, Photoscan does not read the values. To obtain the desired result, I am obliged to modify manually and externally the c01_c04.txt file to write the estimated positions and orientations as real ones.
Is there any possibility available to write the c01_c04.txt file saving only the positions and orientations of the cameras to be able to use them in other projects? May be it could be possible to use other python general commands to write in the correct form this file.
Please, Alexey, could you help me?
Thank you very much.

4
Python and Java API / How to use createDifferenceMask command?
« on: April 24, 2014, 06:57:51 PM »
I wish to make automatic masks using always the same background color (blue) positioned on the back of the subjects.

I have seen in the python api the command "createDifferenceMask", that could create a mask from a pair of images or an image and specified color.

Please, could you explain and/or give an example on the use of the following parameters:
• image (Image) – Image to be masked.
• background (Image or color tuple) – Background image or color value.
• tolerance (int) – Tolerance value.
• fit_colors (boolean) – Enables white balance correction.

Do I need to create a template image with having only the background ("blutemplate.ipg") and then subtract this image from the subject image ("subject.ipg")? How to write in a python api this task?

5
Python and Java API / importCameras problems
« on: April 22, 2014, 07:58:01 PM »
I am trying to import cameras using a python script.
The part of the code used in the script is this one:
path_cal="M:/D40"  #path for the calibration files
chunk = PhotoScan.Chunk()
starting_frame = iframe
chunk.label = "Frame_" + "{0:04d}".format(iframe)
path_cam=path_cal+"/c01_c04.xml"
chunk.importCameras(path_cam, "xml")


When I run the script, and the processing arrives to these lines, in the log on the console I have:
Loading project...
can't load project


and the cameras calibrations and positions are not imported.
How it is possible to solve this problem?

6
Python and Java API / file python text encoding
« on: April 14, 2014, 04:10:39 PM »
I have some problems with the file coding of python files. When I modify a python script and then I save again the file, there are some strange characters, maybe depending on the encoding of the text editor used. When I recall the py file using the "Run python script" command of the console, the run stops immediately, giving this log:

File "O:/PS101_frame_proc__40D_4cams.py", line 3
    import PhotoScan
            ^
SyntaxError: invalid character in identifier

The first lines of my python script file are:

path="C:\Users\Public\Documents\3D_D40\23_09_13_15_35\sc0"
file_name="sc0"
?»?import PhotoScan
import os
import sys
app = PhotoScan.Application()
path_cal="C:\Users\Public\Documents\Sc3D"  #path for the calibration files
file_cal="C:\Users\Public\Documents\Sc3D\Cal_13.txt"

Note that the "?»?" characters where not intentionally written, but they apper in the file.
Please, what is the right encoding of the python file? ANSI, Unicode, UTF-8 or some others?
Thank you very much for your help.

7
I'm using Photoscan Pro Version 1.0.3 build 1832 (64 bit).
I have tried to elaborate a set of 6 photos taken simultaneously from different cameras, using precalibration and fixed calibration.
At the end of the elaboration on the model (alignment,  dense could and mesh building, scaling of the model), I have tried to export the cameras.
If I use the same set of photos for a new elaboration, and I import the cameras .xml file, the processing starts, and it seems to work fine, giving the alignment of the cameras, detecting more then 30000 points for each photo, selecting more then 1500 matched pairs and more then 5000
matching points, but at the end  there are 1810 weak points, and no sparse could is generated.
I have attached the log file.
How is it possible to solve this problem?
Thank you very much for your help.

8
Python and Java API / Chunk.smoothModel()
« on: March 12, 2014, 12:19:42 AM »
In the PhotoScan Python Reference manual I have seen that starting from the PhotoScan version 1.0.0 it was introduced a new tool for smoothing meshes, using Laplacian smoothing algorithm.
Chunk.smoothModel().
It would be very useful to have this tool directly in the menus of Photoscan, otherwise I wish to use this tool on the elaborated meshes, also with the 4D models. Please Alexey, could you suggest how to write the python code to do this?
Thank you very much.
LMG


9
Bug Reports / 4D photos pane movement
« on: March 11, 2014, 10:49:01 PM »
I am using the 4D option.
In the previous version (0.9.1 or 0.9.0) with the activation of the button "play" on the "timeline" pane, it was possible to obtain simultaneously the movement of the 3D models and of all the photos of the same frame in the "photos" pane. With the actual version 1.0.2 the photos remain fixed to the first frame, while the 3D  models change during the play.
Is it possible to re-introduce the synchronized movement of the photos, as it was in the previous versions? It was really useful.
Thank you very  much.
LMG

10
General / Marker tracking
« on: January 30, 2014, 04:12:39 PM »
I have done  the marker tracking in a multiframe 4D project, but in the Ground Control pane I am not able to visualize the coordinates and the scale bars for each frame: only the first frame values are visible. Please, I wish to visualize and to export the coordinates and the measures for each frame. How to do this?

11
General / Multiframe 4D project
« on: January 30, 2014, 04:06:10 PM »
Please, is it possible to remove some frames in a multiframe 4D project? I have not found any command to do this.

Pages: [1]