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.


Messages - ronan

Pages: [1]
1
Hi,
I am working on a project with no initial marker locations. Markers are only tagged on several images.
I let the alignment creating the coordinate system and estimating relative positions.
 
This works well the first time you do the alignment.
Then I cleared my marker locations (not sure why I did that) and then save the project.

Now after reopening the project I am unable to reset the marker location in the gcp panel.
however, the markers have apparently location as they are shown in the model view tab.

a problem that seems to be correlated is that with such set up (all my marker location cleared) I cannot work on single image realignment, as any single image realignment will make my sparse point cloud disappearing.   

Is there a way to reset the marker locations as it seems to be calculated somewhere when plotted on the model view tab in the sparse point cloud?

Thanks

2
General / Re: uploading mask generated outside photoscan
« on: January 03, 2019, 06:34:21 PM »
I reply to my own question.
mask needs to be saved as grayscale image not rgb even if it is black and white.

3
General / uploading mask generated outside photoscan
« on: January 03, 2019, 03:53:14 PM »
Hi,
I have masks (one mask per image) that were generated independently from photoscan.
is there a way to upload them to be used in photoscan?
 
I tried "import mask" in the File menu but could not get the 'from file' option to work.
my mask are black and white png images.

Thanks for any help
   

4
Python and Java API / how to use split_in_chunks.py in the python API
« on: November 26, 2018, 06:36:07 PM »
Hi,
I like to buid the cloud and the model of my project using the python script split_in_chunk.py

This the is code of my single chunck config:

#########

doc = PhotoScan.Document()
doc.open(project_path)

chunk = doc.chunk
doc.save() # to check license

chunk.buildDenseCloud(quality=PhotoScan.UltraQuality, filter=PhotoScan.MildFiltering)
doc.save()

chunk.buildModel(surface       = PhotoScan.Arbitrary,
                 source        = PhotoScan.DenseCloudData,
                 face_count    = PhotoScan.HighFaceCount,
                 interpolation = PhotoScan.EnabledInterpolation)
chunk.model.closeHoles()
doc.save()

################

how can I do the same thing and use split_in_chunck.py ?

5
Python and Java API / Re: copy chunck between document
« on: July 28, 2017, 09:34:33 PM »
if anyone interested, I came the solution to copy the whole document (.psx and .files) before opening the new created document.

Code: [Select]
if os.path.isfile(project_path)                                    : os.remove(project_path)
if os.path.isdir(project_path.replace('.psx','.files')): shutil.rmtree(project_path.replace('.psx','.files'))
shutil.copy(init_project_path,project_path)
shutil.copytree(init_project_path.replace('.psx','.files'),project_path.replace('.psx','.files'))
os.remove(project_path.replace('.psx','.files')+'/lock')

#start photoscan
############
doc = PhotoScan.Document()
doc.open(project_path)

chunk = doc.chunk
doc.save()

6
Python and Java API / copy chunck between document
« on: July 28, 2017, 08:06:14 PM »
Hi,
I like to copy a chunk from a previous document and run a new script with it.
I have been trying the following but nothing is  saved in my new document.
Code: [Select]
app = PhotoScan.Application()
init_project_path = 'xxx'
project_path         = 'yyy'
doc_init = PhotoScan.Document()
doc_init.open(init_project_path)
chunk_init = doc_init.chunk

doc = PhotoScan.Document()
doc.save(project_path, chunks=[chunk_init])
doc.open(project_path)

chunk = doc.chunk
doc.save()

any advices?

Thanks
Ronan

7
Python and Java API / Re: filtering photo for high qualitty run
« on: July 24, 2017, 07:48:33 PM »
thanks
I have the following error when running pip

photoscan-pro/python/bin/python3.5 -m pip install numpy
Traceback (most recent call last):
  File "/home/ronan/Agisoft/photoscan-pro/python/lib/python3.5/runpy.py", line 174, in _run_module_as_main
    mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
  File "/home/ronan/Agisoft/photoscan-pro/python/lib/python3.5/runpy.py", line 133, in _get_module_details
    return _get_module_details(pkg_main_name, error)
  File "/home/ronan/Agisoft/photoscan-pro/python/lib/python3.5/runpy.py", line 109, in _get_module_details
    __import__(pkg_name)
  File "/home/ronan/Agisoft/photoscan-pro/python/lib/python3.5/site-packages/pip/__init__.py", line 16, in <module>
    from pip.vcs import git, mercurial, subversion, bazaar  # noqa
  File "/home/ronan/Agisoft/photoscan-pro/python/lib/python3.5/site-packages/pip/vcs/subversion.py", line 9, in <module>
    from pip.index import Link
  File "/home/ronan/Agisoft/photoscan-pro/python/lib/python3.5/site-packages/pip/index.py", line 30, in <module>
    from pip.wheel import Wheel, wheel_ext
  File "/home/ronan/Agisoft/photoscan-pro/python/lib/python3.5/site-packages/pip/wheel.py", line 39, in <module>
    from pip._vendor.distlib.scripts import ScriptMaker
  File "/home/ronan/Agisoft/photoscan-pro/python/lib/python3.5/site-packages/pip/_vendor/distlib/scripts.py", line 14, in <module>
    from .compat import sysconfig, detect_encoding, ZipFile
  File "/home/ronan/Agisoft/photoscan-pro/python/lib/python3.5/site-packages/pip/_vendor/distlib/compat.py", line 66, in <module>
    from urllib.request import (urlopen, urlretrieve, Request, url2pathname,
ImportError: cannot import name 'HTTPSHandler

8
Python and Java API / Re: filtering photo for high qualitty run
« on: July 24, 2017, 07:32:02 PM »
that would be interesting
I am on xubuntu 16.04
how do you use pip in the photoscan env.
Cheers,
Ronan

9
Python and Java API / Re: filtering photo for high qualitty run
« on: July 24, 2017, 06:28:33 PM »
Hi Alexey,
thanks for the reply.
is there any tools within the photoscan environment that can be used to deal with shape/contour/polygon?
For example in other project i have been using shapely.
Thanks
Ronan

10
Python and Java API / filtering photo for high qualitty run
« on: July 24, 2017, 01:53:56 AM »
Hi,

When running in batch, i want to run a first low quality dem,
and then before running a high quality run I like to remove all photo which are not fully inside a selected polygon define from a shapefile.

using photoscan module, I found the way to get the foot print of the camera on my low quality DEM.
now I like to disable for my high quality run all photo where the foot print does not intersect my predefined shapefile polygon.
 
I understand you can import shapefile with  chunk.importShapes
but then I do not know how to create a polygon from my 4 foot print corners, and test its intersection with the polygon of my shapefile.
Is there any photoscan module which has the same function as the shapely module?

Thanks for your help
Ronan

Pages: [1]