Assessment Photo Assistant
Assessment Photo Assistant - hosted setup
Upload this changed-files ZIP into nkosecdatabase.com/public_html, preserving the
folders in the archive. Existing student/admission/staff data files are not included.
The login page will show Assessment Photo Assistant.
OPTIONAL CONFIGURED HANDWRITING OCR (ADMINISTRATOR)
1. Sign in with your normal school administrator account.
2. Open Assessment Photo Assistant from the login-page shortcut (or its direct page).
3. Expand Administrator - OCR service settings.
4. Enter the OpenAI API key and a compatible image/Structured Outputs model.
The default is gpt-4.1. Leave the key field blank to keep the current saved key.
5. Set concurrency/daily allowances and save. Defaults: 2 photos at once per teacher,
4 across all teachers, 100 images/day per teacher and 1,000/day across the site.
These limits help control shared hosting/API usage; set them to your needs.
6. PHP cURL, OpenSSL and Fileinfo must be enabled; HTTPS access to api.openai.com
must be allowed. Set upload_max_filesize/post_max_size high enough for your photos.
7. Private workspace storage is created outside the document root when writable.
If hosting restricts that location, the protected data/assessment_assistant folder
is used. Keep its .htaccess denial in place. Runtime keys/data are never supplied
in this download. The OCR key is encrypted with a separately generated server key.
Back up the private folder together with that master key when backing up projects.
OPEN ACCESS - NO TEACHER ACCOUNTS
1. Click Assessment Photo Assistant on the public login page. The workspace opens
immediately. No teacher sign-in, registration, username or password is needed.
2. Each browser gets a separate workspace through a random first-party cookie.
Projects and photos remain associated with that browser. Anyone using the same
browser profile can access its workspace, so use a personal browser profile when needed.
3. Keep first-party cookies enabled. Clearing cookies, using private browsing or
switching devices creates a different workspace. Download a project copy before
clearing browser data. Existing signed-in users' earlier projects are preserved
in that browser when they first open the upgraded assistant.
4. Create a project and save online to reopen it later in the same browser.
Reopening clears approvals and requires a fresh WAEC class read.
5. OCR service settings still require the normal school administrator login.
WAEC itself still requires your normal teacher login to enter assessment marks.
INSTALL / UPDATE THE BROWSER CONNECTOR
1. Choose Chrome / Edge connector or Firefox connector in the workspace. Extract the ZIP.
2. In Chrome open chrome://extensions, or in Edge open edge://extensions.
3. Enable Developer mode and Load unpacked; choose the extracted connector folder.
Replace the earlier local connector with the new v3 connector.
Firefox: open about:debugging#/runtime/this-firefox, Load Temporary Add-on, select
manifest.json in the extracted Firefox folder. This lasts until Firefox closes.
Permanent Firefox installation requires Mozilla signing; this ZIP is unsigned.
4. In that same browser, sign in normally to https://stpshs.waecgh.org and open
Assessment Capture. Click this connector's extension icon -> Connect this WAEC tab.
5. It opens a teacher workspace tab on nkosecdatabase.com. Use that opened tab for
the connected run; keep the school tab open.
6. The connector binds the browser tab and workspace session, validates the approved
mark plan, and operates only the selected portal. WAEC passwords/cookies are not
copied to the hosted workspace. A workspace/session change may require reconnection.
Direct entry has desktop Chrome, Microsoft Edge and Firefox connector packages.
Phones and other browsers can prepare/review projects; automatic entry requires
a supported desktop connector in the same browser as the WAEC tab.
PHOTOS, SPEED AND REVIEW
1. Read portal controls, choose year, semester, class and subject, then Apply filters
and read the whole class. Names/reference IDs are read through the connector.
2. Add several JPG/PNG/WebP photos (up to the hosting's upload limit, max20 MB each).
Photos stay at their uploaded resolution. Projects allow up to60 photos.
3. The default Free browser OCR needs no API key. Select each photo, enter its visible
student-row count, and Set photo grid. Drag blue row borders and orange column
borders over the table cells, excluding the heading. Columns must be Name, C.A,
Mid-Sem, Practical, Group, Supervised. Confirm the grid and Read this photo.
Every grid row is kept, even when the name or marks cannot be read. Local readings below 90% OCR confidence, unreadable names and blank/invalid marks
are flagged for review. Confidence is an estimate and can still be wrong. A Cancel button discards partial extraction.
Repeat for the remaining photos. This OCR runs in the browser; it reads printed
text best and may not recognize handwriting. Correct uncertain/blank marks manually.
The OCR assets are included under assets/assessment-ocr; upload the whole folder.
Alternatively, select Configured handwriting OCR, confirm service consent, then
Read queued photos. This option requires the administrator's saved API key and
supports several queued photos concurrently. Completed server results are cached.
4. Failed photos remain visible for retry. If you transcribed a photo manually,
click Reviewed manually and record how every visible row/mark was accounted for.
5. Compare each extracted row against its source photo. Zoom in where needed.
Unreadable names/figures are flagged and block approval until corrected or explicitly
confirmed as reviewed. A blank selected-mode mark needs an explanation.
6. Tick only completed modes you want to enter and provide their overall/maximum scores.
One or two modes are enough. Unticked modes do not need marks or maximums and
are left unchanged. Their uncertain readings are kept for later, but do not block
the selected modes. Update the browser connector to v3.1.0 for partial-mode entry. Maximums are never
inferred from the photo. Negative/invalid or over-maximum marks block entry.
7. Reconciliation separately lists photo rows not matched to the destination and
destination students missing from the photos. No unmatched row can be entered.
The reconciliation section shows every WAEC student missing from the extracted
rows. Add a row and enter their photo marks, or explicitly leave that student
unchanged with a recorded reason. Unmatched/duplicate rows require resolution.
Removed photo rows also require a reason. There is no silent skip or default zero.
8. Matching uses a unique reference ID or a unique normalized/reordered name.
A portal reference ID means ASST_REF.ID, not a different admission/BECE number.
Conflicting marks from overlapping photos are flagged instead of choosing a value.
9. Approve all reviewed valid rows, tick the final confirmation, then start entry.
The connector enters the overall score first and processes one mode at a time.
Existing portal marks are retained. Correct existing over-maximum marks manually.
10. Pause/stop controls are available. Stop does not undo marks already entered.
11. After each mode, use the portal's Save control if it has one, then Reload portal
and verify this mode in the assistant. Only verified retained marks allow the
next mode. Download the report showing entries, existing marks, blank reasons,
explicit exclusions, removed rows and unresolved issues.
INITIAL LIVE VALIDATION
The hosted browser-workspace/storage/queues/review and connector guards were tested using
isolated browser sessions, bundled local OCR, simulated configured OCR and a simulated assessment
portal. No real school marks were entered and no paid OCR requests were made.
The exams-results SMS page reads existing PDF text using pdftotext/PDF readers;
that does not read photographs or handwriting. Free browser OCR supplies that
additional draft-reading step; it does not guarantee correct handwritten digits.
Chrome browser OCR was tested with a synthetic two-student/five-mode table,
including exact printed marks, review flags and project save/reopen.
Clear, uniquely matched readings within the teacher-entered overall scores are
automatically accepted and hidden by default. Show all extracted rows reveals them.
Uncertain, unmatched, missing, duplicate, invalid or over-maximum records still
require attention. Clear approvals switches back to manual approval. The final
confirmation and Start command are still required before any portal entry.
Cancellation and engine errors were tested. Both connector background variants
passed simulated pairing, class, approval and maximum-score guards. Edge/Firefox
live browser launches were blocked by this test environment; native browser and
actual portal validation remain required.
The actual logged-in WAEC DOM/save handlers still need a one-student, one-mode live
check. If controls cannot be identified, Download connector diagnostics and send that
JSON for an exact selector adjustment. It excludes passwords/cookies and student row data.
OCR may misread handwriting: always review. A full class-list comparison catches
unaccounted-for students; it cannot prove that every handwritten digit was read correctly.
API usage may be charged to the administrator's configured provider account.
References used:
https://github.com/naptha/tesseract.js/blob/master/docs/local-installation.md
https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/background
https://extensionworkshop.com/documentation/publish/signing-and-distribution-overview/
https://developer.chrome.com/docs/extensions/develop/concepts/activeTab
https://developers.openai.com/api/docs/guides/images-vision
https://developers.openai.com/api/docs/guides/structured-outputs?api-mode=responses