Coder Social home page Coder Social logo

zeissiqs / zeiss-inspect-addon-api Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 3.0 218.78 MB

ZEISS INSPECT App Python API Documentation

Home Page: https://www.zeiss.com/metrology/products/software.html

License: MIT License

addons api inspect metrology metrology-software python zeiss zeiss-inspect apps

zeiss-inspect-addon-api's Introduction

zeiss-inspect-addon-api's People

Contributors

fblankenburgzeiss avatar frankblabu avatar github-actions[bot] avatar hyeonjinamzeiss avatar iqfmieting avatar mjauergom avatar mprinkezs avatar

Stargazers

 avatar  avatar  avatar  avatar

zeiss-inspect-addon-api's Issues

Applying the example code gom.api.imaging.compute_point_from_pixels() results in an error

Applying the example code of gom.api.imaging.compute_point_from_pixels() to lookup the 3D coordinates of a 2D point alas results in an error. Would appreciate to be able to utilize the described functionality as stated in the documentation. Or should the data be pre-processed somehow to make it work? Please advise me.

#see https://zeissiqs.github.io/zeiss-inspect-addon-api/2023/python_api/python_api.html#gom-api-imaging-compute-point-from-pixels

import gom

DIRNAME = 'c:/data/'
MEASUREMENT_SERIES = 'Scan 1'
MEASUREMENT = 'M1'

gom.script.sys.close_project() #Start by closing all current projects
gom.script.sys.load_project(file= DIRNAME + 'ATOSQ12_1.ginspect')
gom.script.view.toggle_image_mapping(enable=True, use_animation=False) #Show it to me in the UI

measurement = gom.app.project.measurement_series[MEASUREMENT_SERIES].measurements[MEASUREMENT]

left = gom.api.project.get_image_acquisition(measurement, 'left camera', [0])[0]

p = gom.api.imaging.compute_point_from_pixels([[(gom.Vec2d (10, 10), left)]], False)

print(p)

Error in line 18

GomApiError: Computation of 2D points is not allowed in 3D projects.

Stacktrace:

Line 18 in 'gom-api-imaging-compute-point-from-pixels.py' ()

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.