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

Pages: [1] 2
1
Thanks Alexey!

3
Another question about Python in PhotoScan Pro 1.2.3:

What command line should I use to re-locate the pictures of a project that has already been created (with aligning, scaling and optimising steps done).

Regards,
Ant

4
Thanks Alexey!

I've actually managed to make it work with the script below (in case it can help out someone else).

***

import os, PhotoScan

dir_projects = 'E:/...//' #Directory folders with pictures
dir_PS_outputs = 'E:/...//' #Directory saved PS outputs


foldernames = os.listdir(dir_projects)
len(foldernames)

for i in range (0,len(foldernames)):
   
   doc=PhotoScan.app.document
   
   chunk = doc.addChunk()

   path_photos=dir_projects+foldernames

   image_list=os.listdir(path_photos)

   photo_list = list()

   for photo in image_list:
      if photo.rsplit(".",1)[1].lower() in  ["jpg", "jpeg", "tif", "tiff"]:
         photo_list.append("/".join([path_photos, photo]))

   chunk.addPhotos(photo_list)

   chunk.matchPhotos(accuracy=PhotoScan.HighestAccuracy,
                  generic_preselection=False,
                  reference_preselection=False,
                  filter_mask=False,
                  mask_tiepoints=False,
                  keypoint_limit=40000,
                  tiepoint_limit=4000)

   #accuracy=HighestAccuracy, HighAccuracy, MediumAccuracy, LowAccuracy, LowestAccuracy               
                  
   chunk.alignCameras(adaptive_fitting=True)

   chunk.buildDepthMaps(quality=PhotoScan.UltraQuality,
                  filter=PhotoScan.ModerateFiltering)
                  
   #quality=UltraQuality, HighQuality, MediumQuality, LowQuality, LowestQuality               

   chunk.buildDenseCloud(point_colors=True)

   chunk.buildModel(surface=PhotoScan.Arbitrary,
                  interpolation=PhotoScan.EnabledInterpolation,
                  face_count=PhotoScan.HighFaceCount,
                  vertex_colors=True)
                  
   #face_count=LowFaceCount, MediumFaceCount, HighFaceCount               

   chunk.buildUV(mapping=PhotoScan.GenericMapping,
                  count=1,
                  adaptive_resolution=False)
   
   chunk.buildTexture(blending=PhotoScan.MosaicBlending,
                  size=4096,
                  fill_holes=True,
                  ghosting_filter=True)   

   chunk.exportModel(path=dir_PS_outputs+foldernames+"_PS.ply",
                  binary=False,
                  precision=6,
                  texture_format=PhotoScan.ImageFormatNone,
                  texture=False,
                  normals=True,
                  colors=True,
                  cameras=False,
                  markers=False,
                  udim=False,
                  alpha=False,
                  strip_extensions=False,
                  raster_transform=PhotoScan.RasterTransformNone,
                  format=PhotoScan.ModelFormatPLY)

   chunk.exportModel(path=dir_PS_outputs+foldernames+"_PS.obj",
                  binary=False,
                  precision=6,
                  texture_format=PhotoScan.ImageFormatNone,
                  texture=False,
                  normals=True,
                  colors=True,
                  cameras=False,
                  markers=False,
                  udim=False,
                  alpha=False,
                  strip_extensions=False,
                  raster_transform=PhotoScan.RasterTransformNone,
                  format=PhotoScan.ModelFormatOBJ)

   doc.save(path=dir_PS_outputs+foldernames+"_PS.psx")
   
   doc.clear()

5
General / Is it possible to download older versions of PhotoScan?
« on: June 21, 2018, 10:47:46 AM »
Hi there,

Is it possible to download older versions of PhotoScan Pro?

I need to carry on a project for which most of the 3D models have already been processed with Photoscan Pro version 1.2.3 build 2331. To stay consistent in my methodology I'd need to use the exact same version.

Can someone provide me the setup files for Photoscan Pro version 1.2.3 (build 2331) for Linux and Windows 7 (64bit)?

Regards,
Ant

6
Hi there,

I'm a newbie in Python!

I need to write a script that I can use in PhotoScan 1.4.2 to process 800 projects from 800 folders (named from 0001 to 0800) that contains different sets of pictures.

The idea is simply to load the pictures from the first folder, align them, build dense point cloud, build mesh, save the .psx file with the name 0001.psx, export the mesh with the name 0001.ply.

And then automatically loop to go to the next folder to process the exact same steps... and this until folder 0800.

Can anyone help me with this?

Regards,
Ant

7
General / Re: Jpegs and Color Space?
« on: June 10, 2018, 02:34:20 PM »
Hi Mitch,
Have you ever received an answer to your post regarding color space?
Regards,
Ant

8
General / Re: GPU processing failed
« on: June 04, 2018, 10:35:55 AM »
Hi Alexey,
Thanks for quick reply!
My NVIDIA drivers are up-to-date.
I've updated to PhotoScan 1.4.2 and it works. Unfortunately I still need to make the version 1.0.4 working as I need to finish a research project that I've already started and for which I need to keep on using the same version for consistency.
I'll try version 1.0.4 on a different PC.
Regards,
Ant

9
General / GPU processing failed
« on: May 31, 2018, 10:00:19 AM »
Hi there,

I'm using PhotoScan version 1.0.4 build 1847 (64bit) on a Windows 7 Enterprise with Intel Core i7-4790 CPU @3.6 GHz 16GB RAM.

The PC has a GeForce GTX 750.

During the step build dense cloud, the consol says that GPU processing failed and the processing is very slow.

Any advices?

Regards,
Ant

10
General / Re: High resolution snapshots
« on: March 11, 2016, 09:30:12 AM »
Hi SW,
I've you found a solution for your question above?
I also need to get high res screenshots from 3D models on PhotoScan.
Regards,
Ant

11
General / Re: "Optimize cameras" -> results worse than before?!
« on: May 25, 2015, 09:04:15 AM »
Hi ThomasVD,

I also struggle with the scale bar optimization. My errors are the same or even worse after the optimization.

Funny enough I did the same comparison with a previous version of Photoscan Pro (1.0.x) and the optimisation process was giving me smaller errors.

Not sure if there is a bug with version 1.1.

I've also posted a comment about it about a week ago but no one came back to me :-(

Cheers,
Ant

12
General / Re: Scale bar based optimization
« on: May 19, 2015, 12:58:58 PM »
Hi there,

Just two more questions about the scale bar based optimization:

- Should we leave the default values in the reference settings? Or should we modify them according to the values that we've got after the aligning step?

- Should we re-run the aligning step after doing the scale bar based optimization?

For info, I use a single ruler that is accurate to the millimetres to create one scale bar.

I hope someone will be able to assist me with this.

Cheers,
Ant

13
General / Scale bar based optimization
« on: May 15, 2015, 10:43:30 AM »
Hi there,
I've been running the scale bar based optimization and it gives me an higher marker error (pix). Is that normal?
Regards,
Ant

14
Bug Reports / Re: Can't check the pictures in reference tab
« on: May 13, 2015, 10:47:55 AM »
Hi Alexey,

Thanks, that makes more sense now!

What's about the camera error (pix), it is a useful value even if I don't have any source inputs for the camera positions?

Cheers,
Ant

15
General / Estimated image quality unit
« on: April 23, 2015, 12:43:43 PM »
Hi there,

Does anyone know what is the unit of the estimated image quality?

Regards,
Ant

Pages: [1] 2