Skip to content

mtzgroup/molar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repository contains the source code of MolAR, an app for chemistry in augmented reaility.

When using MolAR in research, please cite

Sukolsak Sakshuwong, Hayley Weir, Umberto Raucci, and Todd J. Martínez , "Bringing chemical structures to life with augmented reality, machine learning, and quantum chemistry", J. Chem. Phys. 156, 204801 (2022)

MolAR has 2 components:

  • iOS app
  • web server: mediates between the iOS app and cloud services

Web server

Requirements: Python, pip, Mathpix account, AWS account (for Amazon Rekognition), Google Cloud account (for Google Cloud Vision API), and TeraChem Cloud account.

  1. cd server

  2. pip install httpx boto3 google-cloud-vision tccloud fastapi uvicorn

  3. To use the chemical structure recognition feature, create a Mathpix account and set the following environment variables:

    • MATHPIX_APP_ID
    • MATHPIX_APP_KEY
  4. To use the object recognition feature, follow the instructions on Getting started with Amazon Rekognition, then set the following environment variables:

    • AWS_ACCESS_KEY_ID
    • AWS_SECRET_ACCESS_KEY

    Then follow the instructions on Google Cloud: Setup the Vision API, and put service-account-file.json in the current folder.

  5. To use the quantum computation feature, contact the Martinez group to get a TeraChem Cloud account. Then set the following environment variables:

    • TCCLOUD_USER
    • TCCLOUD_PWD
  6. uvicorn main:app --reload --host 0.0.0.0 --port 8080

iOS app

Requirements: macOS Big Sur or later, Xcode 12 or later.

  1. cd ios/MolAR
  2. cp Config.swift.example Config.swift
  3. Edit Config.swift, set the web server address. Then save.
  4. Open the project in Xcode and run.