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

Pages: [1]
1
I would like to apply this script to the total number of points as well.
Anybody knows how to do this? I was thinking about implementing len(chunk.point_cloud.points) in some way

2
Python and Java API / Re: AttributeError, but why?
« on: February 06, 2021, 12:17:17 AM »
Thanks

3
Python and Java API / Re: AttributeError, but why?
« on: February 05, 2021, 01:10:09 PM »
Hi Alexy,

I am using version 1.2.6 of PhotoScan

4
Python and Java API / Re: AttributeError, but why?
« on: February 04, 2021, 05:56:44 PM »
Thank you for the tip! It still gives the same error..

5
Python and Java API / AttributeError, but why?
« on: February 04, 2021, 03:52:01 PM »
Hi,

I want to automate gradual selection filters. As a start i tried the following code, exactly as written in the python manual:

Code: [Select]

import Photoscan
doc = PhotoScan.app.document

project_path = "G:\\data\test\\"
project_name = "test"

chunk = PhotoScan.app.document.chunk
treshold = 0.5
f = PhotoScan.Filter.ReprojectionError()
f.init(chunk, criterion = PhotoScan.PointCloud.Filter.ReprojectionError)
f.selectPoints(threshold)

doc.save()

print("Finised")



However, i keep get the message:
AttributeError: type object 'PhotoScan.PointCloud' has no attribute 'Filter'

What is missing?

Thanks



Pages: [1]