Damien Romito
Damien Romito

Reputation: 10065

Optical Mark Recognition in javascript for cross plateform mobile app

I'd like to build an exam correction app. From a paper multiple choice question (mcq) I'd like to use my camera to analyse it and get a score. This exist in python https://www.pyimagesearch.com/2016/10/03/bubble-sheet-multiple-choice-scanner-and-test-grader-using-omr-python-and-opencv/

Does someone know a lib in javascript for this ? enter image description here

Upvotes: 4

Views: 3887

Answers (1)

thanhtunguet
thanhtunguet

Reputation: 60

I am doing the same thing. As I found out, you should not use Javascript due to performance reason. You should do the following steps:

  • Write a native module for Android or iOS or C++ for both to handle image
  • Write a native module to process frames from camera to get appropriate frame and pass it to the image handling module.
  • Bridge all them to React Native side, handle them like other native libraries

Read more about native module: https://reactnative.dev/docs/0.60/native-modules-android

You may need OpenCV library to handle your images

Upvotes: 0

Related Questions