Giter Site home page Giter Site logo

abel-research / ampscan_webapp Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 3.0 1.05 MB

A web interface for AmpScan with tools for analysis and visualisation of digitised surface scan data for applications within Prosthetics and Orthotics (P&O)

License: MIT License

Python 18.36% HTML 12.48% JavaScript 59.77% CSS 9.39%
3d-scanning django prosthetics southampton vtk

ampscan_webapp's People

Contributors

dependabot[bot] avatar jack-parsons avatar joshuasteer avatar zakmarine avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ampscan_webapp's Issues

Measurements generation

Output the analysis and measurements data from the webapp

  • .csv file with the volume, cross sectional area, widths etc
  • As in issue #6 then export for pdf generation
  • Need to be able to pick a point for analysis as in #24
  • Need catch errors if returning nans as in #64

Trimming

Current bugs with the trimming tool:

  • Slice plane does not update position
  • Slice Plane trim does not work
  • Three point trim does not work
  • Cannot remove points from visualisation

Alignment Fixes

Icons to alignment views to indicate correct orientation, such as front on, side on.
imageimage
Add test to make sure that e.g. it's not vertical when it should be horizontal before registration/end of alignment, as a sanity check for user.
This will help with stopping invalid CSA calculations due to incorrect orientation of scans.

Duplicate names of objects

Currently if an object is created with the same name, another instance of the object is added to the visualiser. Deal with this by replacing old object with same name, including the vtk actor.

Error when using small slice widths

Internal Server Error: /analyse/summary
Traceback (most recent call last):
File "C:\Users\Jack\Documents\GitHub\ampscan_webapp\pvenv\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
response = get_response(request)
File "C:\Users\Jack\Documents\GitHub\ampscan_webapp\pvenv\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response
response = self.process_exception_by_middleware(e, request)
File "C:\Users\Jack\Documents\GitHub\ampscan_webapp\pvenv\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "C:\Users\Jack\Documents\GitHub\ampscan_webapp\test_app\views.py", line 300, in summary_view
polys = analyse.create_slices(amp, slices, axis)
File "C:\Users\Jack\Documents\GitHub\ampscan_webapp\pvenv\lib\site-packages\AmpScan\analyse.py", line 89, in create_slices
faceOrder = logEuPath(validfE)
File "C:\Users\Jack\Documents\GitHub\ampscan_webapp\pvenv\lib\site-packages\AmpScan\analyse.py", line 255, in logEuPath
del rows[i]
IndexError: list assignment index out of range

Files with spaces in name cause crash

Internal Server Error: /upload/scan
Traceback (most recent call last):
File "C:\Users\Jack\Documents\GitHub\ampscan_webapp\pvenv\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
response = get_response(request)
File "C:\Users\Jack\Documents\GitHub\ampscan_webapp\pvenv\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response
response = self.process_exception_by_middleware(e, request)
File "C:\Users\Jack\Documents\GitHub\ampscan_webapp\pvenv\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "C:\Users\Jack\Documents\GitHub\ampscan_webapp\test_app\views.py", line 270, in upload_view
obj = AmpObject(settings.BASE_DIR + uploaded_file_url)
File "C:\Users\Jack\Documents\GitHub\ampscan_webapp\pvenv\lib\site-packages\AmpScan\core.py", line 52, in init
self.read_stl(data, unify, struc)
File "C:\Users\Jack\Documents\GitHub\ampscan_webapp\pvenv\lib\site-packages\AmpScan\core.py", line 75, in read_stl
with open(filename, 'rb') as fh:
FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\Jack\Documents\GitHub\ampscan_webapp/media/stl_file%20(1)_yW4wQVG.stl'

Terms

Add a terms of use page on the webapp

NaNs in JSON data

image
Sometimes NaNs still appear (I believe in the registration scalars). I can't find a reliable way to reproduce it, but it occasionally still happens under certain conditions.

How should I handle these?

Add readme.md

  • How to install
  • Basic info about project

Use AmpScan readme.txt as template.

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.