Skip to content

Releases

Captua 0.3.3

Choose a tag to compare

@juancobo juancobo released this 30 Nov 06:05
9d2ed41

Versión en español abajo

This release finishes the change of name inside a unit. The software has been called Captua since 0.1.0, but on a unit its service, its folders and its settings still carried the earlier placeholder, dtk. From 0.3.3 they are named captua. Nothing changes in the interface, and a unit keeps its address, http://captua.local.

Updating from 0.3.2. Update once, as usual, with scripts/update.sh.

  • The unit needs the internet for this update.
  • Captua is stopped for a few minutes. Make sure nobody is capturing.
  • The update renames, in place and without copying any image:
    • the service, from dtk to captua;
    • the software's folder, from /home/pi/dtk to /home/pi/captua;
    • the data folder, from /var/lib/dtk to /var/lib/captua;
    • the settings in .env, from DTK_… to CAPTUA_….
  • If the update finds something it cannot move safely, it refuses before it changes anything and says why.
  • If the update is interrupted, run it again. It continues from the step where it stopped.

After the update.

  • Commands that name the service change. To restart Captua: sudo systemctl restart captua. To read its log: journalctl -u captua. The operator card has the new command.
  • Scripts or notes of your own that name /home/pi/dtk or /var/lib/dtk need the new paths.
  • On an external drive that has no projects folder yet, Captua now creates captua-projects. A drive that already has a dtk-projects folder keeps it, and Captua goes on using it.

Rolling back. rollback-update.sh returns the unit to 0.3.2 and to the dtk names. It needs the internet too. It restores the catalog as it was before the update, so records captured on 0.3.3 are no longer in it, although their image files stay on the unit. Decide on a rollback before capturing real work on the new version.

Fixes, and the notes for maintainers and integrators, stay in the changelog.

Acknowledgments

Captua is developed at the Archives, Memory, and Preservation Lab of the University of California, Santa Barbara and at the University of Texas at Austin. It has been made possible in part by a major grant from the National Endowment for the Humanities: Democracy demands wisdom. (NEH Award HAA-304052-25: "Digitization Toolkit: a Blueprint for Egalitarian Access to Technology in Low-Resource Environments".)

Any views, findings, conclusions, or recommendations expressed in this software do not necessarily represent those of the National Endowment for the Humanities.

National Endowment for the Humanities


Español

Con esta versión termina el cambio de nombre dentro de los equipos. El programa se llama Captua desde la versión 0.1.0, pero en cada equipo el servicio, las carpetas y los ajustes seguían con el nombre provisional, dtk. A partir de la 0.3.3 se llaman captua. En la interfaz no cambia nada, y el equipo conserva su dirección, http://captua.local.

Si vienes de la 0.3.2. Actualiza una sola vez, como siempre, con scripts/update.sh.

  • Para esta actualización, el equipo necesita conexión a internet.
  • Captua queda detenido durante unos minutos. Asegúrate de que nadie esté capturando.
  • Durante la actualización se les cambia el nombre a estos elementos, sin moverlos de lugar y sin copiar ninguna imagen:
    • el servicio, de dtk a captua;
    • la carpeta del programa, de /home/pi/dtk a /home/pi/captua;
    • la carpeta de los datos, de /var/lib/dtk a /var/lib/captua;
    • los ajustes de .env, de DTK_… a CAPTUA_….
  • Si hay algo que no se puede mover sin riesgo, la actualización se cancela antes de cambiar nada y se muestra el motivo.
  • Si la actualización se interrumpe, vuelve a ejecutarla: se retoma desde el paso en que quedó.

Después de actualizar.

  • Cambian los comandos que usan el nombre del servicio. Para reiniciar Captua: sudo systemctl restart captua. Para ver el registro de eventos de Captua: journalctl -u captua. La Guía rápida de uso ya tiene el comando nuevo.
  • Si en tus scripts o apuntes usas las rutas /home/pi/dtk o /var/lib/dtk, cámbialas por las nuevas.
  • En una unidad externa que todavía no tiene carpeta de proyectos, ahora Captua crea captua-projects. Si la unidad ya tiene una carpeta dtk-projects, Captua la conserva con ese nombre y la sigue usando.

Volver a la versión anterior. El script rollback-update.sh devuelve el equipo a la 0.3.2 y a los nombres dtk. También necesita conexión a internet. Restaura el catálogo tal como estaba antes de la actualización, así que en el catálogo no quedan los registros que se capturaron con la 0.3.3, aunque sus imágenes siguen en el equipo. Si vas a volver a la versión anterior, decídelo antes de empezar a capturar volúmenes reales con la 0.3.3.

Las correcciones y las notas para quienes mantienen o integran Captua están en el registro de cambios.

Agradecimientos

Captua is developed at the Archives, Memory, and Preservation Lab of the University of California, Santa Barbara and at the University of Texas at Austin. It has been made possible in part by a major grant from the National Endowment for the Humanities: Democracy demands wisdom. (NEH Award HAA-304052-25: "Digitization Toolkit: a Blueprint for Egalitarian Access to Technology in Low-Resource Environments".)

Any views, findings, conclusions, or recommendations expressed in this software do not necessarily represent those of the National Endowment for the Humanities.

National Endowment for the Humanities

Captua 0.3.2

Choose a tag to compare

@juancobo juancobo released this 29 Nov 02:22

Versión en español abajo

From this release on, an update runs the new version's own steps on its first run. Until now the update finished with the steps of the version it started from, so anything a release added to the update took effect one update later, and some releases had to be installed twice.

Updating from 0.3.1. Update as usual, from Settings or with scripts/update.sh, once. Later releases are also installed with one run each.

  • After a unit moves to the single repository, the message at the end of the update no longer offers a rollback across the move, which is not possible once the move is complete; it says that problems are fixed with a later update.

Fixes, and the notes for maintainers and integrators, stay in the changelog.

Acknowledgments

Captua is developed at the Archives, Memory, and Preservation Lab of the University of California, Santa Barbara and at the University of Texas at Austin. It has been made possible in part by a major grant from the National Endowment for the Humanities: Democracy demands wisdom. (NEH Award HAA-304052-25: "Digitization Toolkit: a Blueprint for Egalitarian Access to Technology in Low-Resource Environments".)

Any views, findings, conclusions, or recommendations expressed in this software do not necessarily represent those of the National Endowment for the Humanities.

National Endowment for the Humanities


Español

A partir de esta versión, la actualización ejecuta los pasos propios de la versión nueva desde la primera vez que actualizas. Hasta ahora, la actualización terminaba con los pasos de la versión que ya estaba instalada en el equipo, así que lo que una versión nueva le agregaba a la actualización solo tenía efecto en la siguiente, y algunas versiones había que instalarlas dos veces.

Si vienes de la 0.3.1. Actualiza una sola vez, como siempre, desde Configuración o con scripts/update.sh. Las versiones siguientes también se instalan con una sola ejecución cada una.

  • Una vez terminado el cambio de repositorio, el mensaje final de la actualización ya no ofrece devolver el equipo a como estaba antes del cambio, algo que en ese punto ya no se puede hacer; ahora dice que los problemas se corrigen con una actualización posterior.

Las correcciones y las notas para quienes mantienen o integran Captua están en el registro de cambios.

Agradecimientos

Captua is developed at the Archives, Memory, and Preservation Lab of the University of California, Santa Barbara and at the University of Texas at Austin. It has been made possible in part by a major grant from the National Endowment for the Humanities: Democracy demands wisdom. (NEH Award HAA-304052-25: "Digitization Toolkit: a Blueprint for Egalitarian Access to Technology in Low-Resource Environments".)

Any views, findings, conclusions, or recommendations expressed in this software do not necessarily represent those of the National Endowment for the Humanities.

National Endowment for the Humanities

Captua 0.3.1

Choose a tag to compare

@juancobo juancobo released this 28 Nov 23:22

Versión en español abajo

This release moves Captua's code into a single repository. Nothing in the interface changes, and nothing about projects, volumes or images: they stay where they are on the unit. 0.3.1 prepares the units for the releases that follow, which are built on the new layout.

Updating from 0.3.0. Update as usual, from Settings or with scripts/update.sh. This release is installed in two steps. The first is an earlier update, called the bridge, already in the main branch: it prepares a unit for the move, and units on 0.3.0 took it before this release. The second is 0.3.1 itself: on a unit that has the bridge, the first time you run the update it moves the code to the new layout and, at the end, asks you to run it again; that second run installs 0.3.1. Each run checks the unit before it changes anything, and if something is in the way it stops with nothing changed.

If an update stops during the move. An update that stops while the code is being moved can be rolled back to 0.3.0 with scripts/rollback-across-merge.sh. Once the move is complete, a problem is fixed with a later update instead. 0.3.1 is the oldest version a unit can be rolled back to.

  • Captua 0.3.1 works with Fisqua 0.9.0.
  • An old copy of the retired documentation wiki stays with the previous version of the code, at /home/pi/dtk.pre-merge.

Fixes, and the notes for maintainers and integrators, stay in the changelog.

Acknowledgments

Captua is developed at the Archives, Memory, and Preservation Lab of the University of California, Santa Barbara and at the University of Texas at Austin. It has been made possible in part by a major grant from the National Endowment for the Humanities: Democracy demands wisdom. (NEH Award HAA-304052-25: "Digitization Toolkit: a Blueprint for Egalitarian Access to Technology in Low-Resource Environments".)

Any views, findings, conclusions, or recommendations expressed in this software do not necessarily represent those of the National Endowment for the Humanities.

National Endowment for the Humanities


Español

Con esta versión, el código de Captua queda en un solo repositorio. No cambian ni la interfaz ni los datos: los proyectos, los volúmenes y las imágenes se quedan donde están en el equipo. La 0.3.1 deja los equipos listos para las versiones siguientes, que parten de esta nueva organización del código.

Si vienes de la 0.3.0. Actualiza como siempre, desde Configuración o con scripts/update.sh. Esta versión se instala en dos pasos. El primero es una actualización anterior, que llamamos «el puente» y que ya está en la rama main: prepara el equipo para el cambio de repositorio, y los equipos que estaban en la 0.3.0 ya la recibieron antes de que saliera esta versión. El segundo es la 0.3.1: en un equipo que ya tiene el puente, la primera vez que ejecutas la actualización, esta pasa el código a la nueva organización y, al terminar, te pide que la ejecutes otra vez; esa segunda ejecución instala la 0.3.1. En cada ejecución, la actualización revisa el equipo antes de hacer cualquier cambio; si encuentra algo que le impide seguir, se detiene sin cambiar nada.

Si la actualización se detiene a mitad del cambio de repositorio. Puedes devolver el equipo a la 0.3.0 con scripts/rollback-across-merge.sh. Si el cambio de repositorio ya terminó, los problemas se corrigen con una actualización posterior. La 0.3.1 es la versión más antigua a la que se puede devolver un equipo.

  • Captua 0.3.1 funciona con Fisqua 0.9.0.
  • Si el equipo tiene una copia vieja de la wiki de documentación, que ya se retiró, esa copia queda junto con el código anterior en /home/pi/dtk.pre-merge.

Las correcciones y las notas para quienes mantienen o integran Captua están en el registro de cambios.

Agradecimientos

Captua is developed at the Archives, Memory, and Preservation Lab of the University of California, Santa Barbara and at the University of Texas at Austin. It has been made possible in part by a major grant from the National Endowment for the Humanities: Democracy demands wisdom. (NEH Award HAA-304052-25: "Digitization Toolkit: a Blueprint for Egalitarian Access to Technology in Low-Resource Environments".)

Any views, findings, conclusions, or recommendations expressed in this software do not necessarily represent those of the National Endowment for the Humanities.

National Endowment for the Humanities

Captua 0.3.0

Choose a tag to compare

@juancobo juancobo released this 26 Nov 06:31
b6b4d99

Versión en español abajo

This release lets you choose what a unit sends outside, pair a unit with Fisqua from Settings, and work from Fisqua's queue. It adds a step that records which camera photographs which page, a check of the cameras, a Network section, and a testing space for practice. A new unit is now set up from the screen attached to it, a unit can ask for color card shots for each volume, and a capture for which the screen got no answer is neither lost nor taken twice. An administrator can move captures taken in a hand-made volume into the volume Fisqua assigned, and the Overview is rebuilt for the unit's screen and for a large monitor. Everyone signs in again after the update.

Setting up a new unit. When a unit has no account yet, Captua shows a set-up wizard on the screen attached to the unit: choose the language, create the administrator's account, then join a network. Nothing has to be copied from a terminal any more. The language chosen becomes the unit's language.

Unit modes. An administrator chooses one of three modes in Settings: Scanner only (nothing leaves the unit), Offsite copy only (images and catalog go to the offsite copy), or Fisqua (everything on). At the first start after the update, Captua sets the mode the unit's configuration allows. A volume can be kept on the unit in any mode.

Pairing with Fisqua. An administrator links a unit from Connect to Fisqua: name the unit, read the six-character code, and have a workspace administrator approve it in Fisqua. Captua restarts once after the approval.

Fisqua's queue. In Fisqua mode, Queue lists the unit's queue in three sections: what is under way, recaptures and rescans, then new material. Next follows that order.

Retakes and missing pages. An opening with one page photographed, and an opening never captured, are both shown and listed in To retake. A record can be closed without capturing, with a reason.

Cameras and set-up. Cameras are named by where they stand, Left camera and Right camera; pages are odd/recto and even/verso. After the update every unit asks once which picture is the odd/recto page. Check cameras takes test captures that are never saved. On Canon DSLRs, Refocus guides a focus check. Captua now works out which kind of camera a unit has, and an administrator can choose it in Settings › Cameras. If Captua stops in the middle of a capture and a Canon camera then does not respond, Captua resets that camera by itself.

Color card shots. A unit can ask for a photograph of the color card with each camera before a volume's first page, and again after a camera's settings are changed. The operator takes the shots on the capture screen, or skips them, and no page can be captured until one or the other is done. The shots stay with the volume and go to the offsite copy and to Fisqua with it. A volume without them is flagged in the lists of volumes and on its own page. An administrator turns on Ask for color card shots in Settings › Cameras.

The capture screen. On units without a continuous preview, the screen shows one frame on entry and the opening just captured. The capture key is assigned in Settings. When a capture takes longer than usual, the screen says so. If it gets no answer in time, it keeps the controls locked and checks whether the capture was saved before letting you capture again. When the screen gets no answer after a capture, it finds out from the unit whether the capture was saved and says so; capturing again cannot make a duplicate. Captua opens the capture screen in the mode the volume was last captured in: one camera or two. Beside the capture button there is a button to retake the last opening.

Capture formats. JPEG or RAW+JPEG on the T7 and the A2500. The unit stores the format for each camera body.

Settings and the network. Settings is divided into sections. Network shows the connections, and administrators and operators can join or forget a Wi-Fi network from the screen. The capture key or pedal is set once for the unit, in Capture key, and works from every browser. Each person chooses their language in Language, and Captua uses it on any device they sign in from.

Moving captures into the volume Fisqua assigned. When pages were captured in a volume made by hand and Fisqua later assigns the volume they belong to, an administrator can move them from the hand-made volume's page, with Move the captures into a volume from Fisqua. Captua shows what it will do, or each reason it cannot, before anything changes. It renames the files, moves the records and the color card shots, and uploads the files again under the new names. The copies already in the offsite copy under the old names stay there until someone deletes them by hand. The emptied volume takes no new captures and can be deleted. If a move is interrupted, Captua finishes it or undoes it at the next start. If it can do neither, a notice tells administrators which file is missing, and Repair fetches it from the offsite copy and settles the move.

The Overview. The Overview is rebuilt: one column on the unit's own screen, two on a large monitor. A Needs attention block lists what needs someone: a camera that is not detected or cannot capture, cameras of another kind than the unit is set up for, storage that is nearly full, volumes with retakes, and a move of captures that was interrupted. The camera preview and the Focus and Test buttons are no longer on the Overview; they are in the camera check. Press Check cameras to open it.

Storage. Operators can now free space on the card. Settings › Storage lists the volumes whose images are all verified in the offsite copy, largest first, and the storage warning on the Overview leads there. The storage warning also says how much space can be freed. Captua keeps 2 GB free for its own work and refuses a capture before that reserve is used, with a message that says where to free space. On a unit that cannot read the offsite copy, a volume freed from the card can no longer be restored or exported from that unit; the screen says so before you confirm.

The testing space. An administrator can switch on one shared practice account from Testing. Its volumes stay on the unit, never reach the offsite copy or Fisqua, and each is removed a set number of days after its last capture.

Sign-in and passwords. Signing out ends every session of that user. A session lasts while someone is using the screen. An administrator can set another person's password from Users, and everyone can change their own from the account menu. A new password needs at least 8 characters.

Canon PowerShot A2500. Captua keeps these bodies awake, sets their zoom and their clock. Details are in the changelog.

Updating. While an update has Captua stopped, the unit shows a page that says so, and when the update ends Captua comes back on the screen without anyone doing anything. If a unit stops answering for any other reason, a banner says so.

Before you update

  • Everyone signs in again.
  • Passwords shorter than 8 characters still sign in. The rule applies when a password is set or changed.
  • Projects leave the menu on every unit; Volumes lists every volume. An administrator can bring projects back with Use projects, in Scanner only. No volume is moved or deleted.
  • Every unit asks which camera photographs the odd/recto page before the first capture.
  • Captua 0.3.0 needs a Fisqua that reads records for pages that were not captured. The Fisqua at fisqua.org does today; no numbered Fisqua release does yet. Do not pair a unit on Captua 0.3.0 with Fisqua 0.8.0 or older: Fisqua 0.8.0 refuses any delivery that contains such a record.
  • A unit updating from 0.2.0 must update twice, or run the two install scripts once. Without that it cannot pair with Fisqua or change Wi-Fi from the screen.
  • Color card shots are off after the update. To ask for them, an administrator turns on Ask for color card shots in Settings › Cameras.
  • A capture key assigned in a browser is carried over to the unit once. After that it is changed in Settings › Capture key.
  • The sign-in page no longer has a language picker. Each person sets their language in Settings › Language.
  • The page shown during an update is not shown while this version is being installed; it is shown in later updates.
  • The English interface now uses US spelling.
  • Storage sizes are counted in the units that drives are labeled with. The same disk reads larger than before: one shown as 466 GB / 507 GB now reads 500 GB / 544 GB. Nothing about the disk has changed.
  • The Overview no longer has a camera preview. Use Check cameras.

Fixes, and the notes for maintainers and integrators, stay in the changelog.

Acknowledgments

Captua is developed at the Archives, Memory, and Preservation Lab of the University of California, Santa Barbara and at the University of Texas at Austin. It has been made possible in part by a major grant from the National Endowment for the Humanities: Democracy demands wisdom. (NEH Award HAA-304052-25: "Digitization Toolkit: a Blueprint for Egalitarian Access to Technology in Low-Resource Environments".)

Any views, findings, conclusions, or recommendations expressed in this software do not necessarily represent those of the National Endowment for the Humanities.

National Endowment for the Humanities


Español

Con esta versión puedes elegir qué sale de cada equipo, vincular un equipo con Fisqua desde Configuración y trabajar a partir de la cola de Fisqua. También agrega un paso en el que se registra qué página fotografía cada cámara, una revisión de l...

Read more

Captua 0.2.0

Choose a tag to compare

@juancobo juancobo released this 01 Nov 01:34
b5ebdb9

Versión en español abajo

0.2.0 keeps the archive's digitisation lists on the unit, lists the records waiting to be retaken, and puts retakes ahead of new volumes. It can also rebuild a volume digitised before Captua from images already in the bucket.

Digitisation lists (Cola)

  • Lists imported from Fisqua are now kept on the unit. The Cola screen shows them one at a time, with each list's items in the list's order.
  • Admins and operators import from Cola. If a list's project does not exist yet, only an admin can import it, and Captua creates the project.
  • After an import, Cola reports how many volumes Captua created, and each item it set aside, with the reason.
  • Each item shows:
    • its title and reference code;
    • what the list asks for: a full digitisation, a full rescan, a spot recapture, or the completion of a volume;
    • the list's instructions, in full;
    • the stage and progress of its volume.
  • The list can be filtered by what each item asks for.
  • Siguiente marks the first item that is not yet done and can be opened for capture. While retakes are pending, items whose volumes have retakes come first.
  • A full digitisation counts as done once every record in its volume is approved. An admin or reviewer can mark any item done, and remove the mark. Captua records who marked it and when.
  • Lists imported before 0.2.0 show their items once they are imported again.

The instruction on the capture screen

  • When you capture into a volume named in a list, the instruction from the newest list naming it appears at the top of the capture screen. An example is the openings to recapture.
  • By default the screen shows two lines. If the text is longer, Mostrar todo opens the rest, and the preview, the capture button and the thumbnail strip stay clear of it.

Retakes

  • Por recapturar lists every record rejected in review, whether on the unit or in Fisqua, oldest rejection first.
    • Each row shows the volume, the reason with its explanation, the reviewer's note, and who rejected it and when.
    • The list can be filtered by volume.
    • The side menu shows how many records are rejected.
  • For admins and operators, Volver a capturar starts a guided recapture through the volume's pending records, in order.
    • After each retake, Captua opens the next record.
    • Saltar por ahora moves a record to the end.
    • The retake window shows why the record was rejected.
  • The overview shows how many openings are waiting, in how many volumes, and which volume has the most.
  • A record is pending while it is rejected. It stays pending after it has been prepared for retake, until a new capture replaces its image.

The recapture turn

  • While any record on the unit is pending, an operator can't start an empty volume.
    • Finishing the retakes of one volume allows one new volume.
    • The first capture into that new volume hands the turn back to retakes. Turns don't accumulate.
    • Captures into volumes that already have records are never blocked, and neither are retakes.
  • The capture screen explains the block and links to a volume to retake. An admin can capture anyway. Cola shows whose turn it is.
  • No one can send a volume with pending records to review. The volume page shows how many retakes are left.

Volumes digitised before Captua

  • With shell access to the unit, an admin can rebuild a volume digitised with two cameras before Captua, using python -m app.core.rebuild_volume <stem> <bundle> --apply.
    • The command reads a prepared bundle: the plan of records, plus each source image's digests and thumbnail.
    • The masters must already be copied to the bucket under Captua names.
    • Each opening becomes a paired record, with each camera's rotation from the plan. An image without a partner becomes a single record.
    • The masters stay in the bucket. Only thumbnails and metadata are kept on the unit.
    • Without --apply, the command only reports what it would do.
    • A rerun keeps finished records only if they match the plan.
  • A rebuilt volume is handed over like any other. Openings rejected in Fisqua come back to Por recapturar.

Rotation sent to Fisqua (optional)

  • With CAPTUA_FISQUA_ROTATE_DEG=true, Captua writes the capture manifest as version 1.5, and each image carries its rotation as rotateDeg.
  • The default is false, which leaves the manifest at version 1.1, unchanged. Turn it on only for a Fisqua that reads contract 1.5.

Other changes

  • A project's volume list shows each volume's real stage. Before, it showed placeholder states.
  • On a freed record, the note that the master is in the bucket no longer covers the thumbnail.

Fixes

  • An import refuses a list containing a number too large to read, as it already refused NaN, instead of writing the value into the volume.
  • An item whose stem ends in a line break is set aside as an invalid stem before it reaches the database.
  • A record's rejection history starts with the rejection Por recapturar shows, also when two rejections were made at the same moment.

For integrators

  • New routes:
    • GET /imports/digitisation-lists
    • PUT /imports/digitisation-lists/{list_id}/items/{position}/done
    • GET /records/to-retake, /to-retake/count, /to-retake/summary
  • New 409 responses: recapture_turn on POST /cameras/capture and /capture/dual, and recaptures_pending on POST /collections/{id}/promote.
  • New setting: CAPTUA_FISQUA_ROTATE_DEG (or DTK_), default false.
  • New CLI: app.core.rebuild_volume.

Acknowledgments

Captua is developed at the Archives, Memory, and Preservation Lab of the University of California, Santa Barbara and at the University of Texas at Austin. It has been made possible in part by a major grant from the National Endowment for the Humanities: Democracy demands wisdom. (NEH Award HAA-304052-25: "Digitization Toolkit: a Blueprint for Egalitarian Access to Technology in Low-Resource Environments".)

Any views, findings, conclusions, or recommendations expressed in this software do not necessarily represent those of the National Endowment for the Humanities.

National Endowment for the Humanities


Español

Con 0.2.0, las listas de digitalización quedan guardadas en el equipo, Captua muestra los registros que hay que volver a capturar y las recapturas van antes que los volúmenes nuevos. También se puede reconstruir un volumen que se digitalizó antes de Captua a partir de las imágenes que ya están en la copia externa.

Listas de digitalización (Cola)

  • Las listas que se importan desde Fisqua ahora se guardan en el equipo. La pantalla Cola muestra una lista a la vez, con sus elementos en el orden de la lista.
  • Los administradores y los operadores importan las listas desde Cola. Si el proyecto de una lista todavía no existe, solo un administrador puede importarla, y Captua crea el proyecto.
  • Después de importar, Cola dice cuántos volúmenes creó Captua y qué elementos dejó por fuera, con el motivo de cada uno.
  • Cada elemento de la lista muestra:
    • su título y su código de referencia
    • lo que pide la lista: digitalizarlo completo, volver a escanearlo completo, recapturar algunos pares de páginas o completar el volumen
    • las instrucciones de la lista, completas
    • la etapa y el avance de su volumen
  • Puedes filtrar la lista según lo que pide cada elemento.
  • Siguiente señala el primer elemento que todavía no está hecho y que se puede abrir para capturar. Mientras haya recapturas pendientes, van primero los elementos cuyos volúmenes tienen recapturas.
  • Un elemento de digitalización completa aparece como hecho cuando todos los registros de su volumen están aprobados. Un administrador o un revisor puede marcar como hecho cualquier elemento, y también quitarle la marca. Captua guarda quién lo marcó y cuándo.
  • Para ver los elementos de una lista importada antes de 0.2.0, vuelve a importarla.

La instrucción en la pantalla de captura

  • Cuando capturas en un volumen que figura en una lista, en la parte de arriba de la pantalla de captura aparece la instrucción de la lista más reciente que lo nombra; por ejemplo, los pares de páginas que hay que recapturar.
  • Al principio se ven dos líneas. Si el texto es más largo, Mostrar todo lo abre entero, sin tapar la vista previa, el botón de captura ni la tira de miniaturas.

Recapturas

  • Por recapturar muestra todos los registros rechazados en la revisión, en el equipo o en Fisqua, empezando por el rechazo más antiguo.
    • En cada fila están el volumen, el motivo con su explicación, la nota de quien revisó, y quién lo rechazó y cuándo.
    • Puedes filtrar por volumen.
    • El menú lateral muestra cuántos registros están rechazados.
  • Para los administradores y los operadores, Volver a capturar abre una recaptura guiada por los registros pendientes del volumen, en orden.
    • Después de cada recaptura, Captua abre el registro siguiente.
    • Saltar por ahora deja el registro para el final.
    • La ventana de recaptura muestra por qué se rechazó el registro.
  • El resumen muestra cuántos pares de páginas faltan por recapturar, en cuántos volúmenes, y cuál tiene más pendientes.
  • Un registro queda pendiente mientras está rechazado. Aunque ya se haya preparado para la recaptura, sigue pendiente hasta que una captura nueva reemplace su imagen.

El turno de recapturas

  • Mientras haya algún registro pendiente en el equipo, un operador no puede empezar un volumen vacío.
    • Al terminar las recapturas de un volumen, se puede empezar un solo volumen nuevo.
    • La primera captura en ese volumen nuevo le devuelve el turno a las recapturas. Los turnos no se acumulan.
    • Siempre puedes seguir capturando en un volumen que ya tiene registros, y siempre puedes recapturar.
  • Cuando l...
Read more

Captua 0.1.0-beta

Choose a tag to compare

@juancobo juancobo released this 26 Oct 06:32
b53e531

Versión en español abajo

0.1.0-beta is the first release built to be tested in day-to-day operation in an archive. It is tested on one configuration: a Captua unit (the Raspberry Pi scanner) with two Canon EOS Rebel T7 cameras connected over gphoto2, and a monitor, keyboard and mouse.

Captua can be used on its own or with Fisqua, AMPL's open-source cataloguing platform for archives. It can be used offline, or with copies kept in the cloud. Each of these is a complete way of working.

  • On its own: volumes take the archive's own reference codes, and a volume's files leave the unit through the export.
  • Offline: the unit needs no internet connection to capture, review or export.
  • With Fisqua: the codes come from the archive's Fisqua catalogue, and Captua sends each finished volume to Fisqua.
  • With the cloud: Captua keeps copies of the images and the catalogue in a bucket.

Volumes and file names

  • A volume is whatever the archive catalogues as a single item and captures as a whole: a bound volume, a folder, a bundle of loose documents. Each volume now carries a reference code: the archive's own, or, for an archive that uses Fisqua, the item's code in its Fisqua catalogue.
  • That code is the stem of every file name in the volume. A stem has at most 27 characters: lowercase letters and digits, in groups joined by single hyphens, as in co-ahr-con-t055. Nothing can be captured into a volume until it has a stem. Once images have been captured into a volume, its stem can't be changed or given to another volume. A volume's reference code and its stem are always the same; Captua refuses one that differs from the other.
  • New images are named <stem>-img_<nnnn>_c<n>: the stem, a number counted per volume, and the camera. Numbers are never reused, including those of retaken pages.
  • On the unit's storage, each volume's files now sit in a folder of their own, named after its stem. Inside are:
    • captures for the masters, the original files from the camera;
    • previews for the JPEGs made from RAW masters;
    • thumbnails for the thumbnails;
    • metadata for the metadata.
  • Renaming a project or moving a volume to another project no longer moves or renames any file. At the first start after the update, Captua moves existing files into this layout.
  • Renumbering a volume changes the order of its pages and leaves the file names as they are.
  • Captua leaves RAW masters exactly as the camera wrote them. Each image's rotation is recorded beside it and travels with the export.

Capture and interface

  • Guided tour: a first-run tour walks through the six steps from creating a project to exporting a volume. You can open it again from Ayuda.
  • Hover help: the icon-only controls on the capture screen say what they do when the pointer rests on them.
  • Thumbnail strips: they keep the two pages of a spread together.
  • Sliders: the brightness, contrast and saturation sliders change how the image looks on screen. They leave the file as it is. Captua resets the rotation when you move to the next page.
  • Camera rotation: each camera starts at the rotation saved for it, also when the unit takes a moment to detect the cameras after it starts.
  • Camera panel: it says when the capture system is not available, instead of reporting a missing camera.
  • Renumbering: it reports how many records were renumbered.
  • Storage warning: the overview warns every user when the drive that holds the volumes is 85% full or more.
  • Dialogs: dialogs fit on the unit's 800×480 screen, and you can scroll one that is too long for it. Escape or a click outside closes a dialog, except while closing it would lose work in progress.
  • User menu and shutdown: every screen has a user menu, opened from your name in the sidebar or from the avatar on the capture and volume screens. From it, every signed-in user can shut down or restart the unit, not only administrators.
  • Removed controls: two controls that did nothing are gone: the Filtros buttons on the project and volume lists, and Recuérdame on the sign-in screen.
  • Register: the interface addresses you as tú throughout.

Review

  • A page can be rejected for one of nine reasons, each with a line explaining it: motion blur, glare/reflection, shadows, out of focus, exposure, debris on surface, framing, obstruction, and other. A rejection for "Other" needs a note. A note can be up to 2,000 characters.

Copies in the cloud (optional)

  • On a unit set up with a bucket in the cloud (Backblaze B2), Captua copies each master and its preview there. It then checks each copy against the bucket's own list of what it holds.
  • For each volume, you can see how much of it is already in the bucket.
  • Once a day, Captua copies its catalogue (the database of volumes, records and images) to the bucket, encrypted.
  • Once the bucket holds a whole volume, an administrator can remove its masters and previews from the unit to free space. Thumbnails stay on the unit. Before removing a file, Captua checks it against the bucket again.
  • An administrator can bring a freed volume back from the bucket.
  • Copying to the bucket can be paused on the unit during maintenance, and resumed afterwards.

Working with Fisqua (optional)

  • When a volume is sent for review, and every one of its files is in the bucket, Captua sends Fisqua the volume's capture manifest: the list of its files and their checksums, which is needed to register the volume in Fisqua. No one has to exchange files by hand.
  • If the unit is offline at that moment, Captua sends the manifest once the connection returns.
  • The volume page shows where the volume stands in Fisqua: sent, registered, being processed, waiting for review, or refused, with the reasons.
  • When pages are reviewed in Fisqua, Captua applies the decisions on the unit: it approves or rejects each record with Fisqua's reason and note, and records any rotation correction. It skips any record whose images have changed since the volume was sent.
  • If Fisqua can't read the manifests this version of Captua writes, Captua stops sending and tells the administrator. Captua tries again every six hours, and sends the refused volumes again once Fisqua reads its manifests, after an update to either.
  • A unit without Fisqua can still download the capture manifest from the volume page.
  • Captua can import a digitisation list exported from Fisqua (the items an archive plans to capture) and create a volume for each item.

Welcome and credits

  • The welcome screen offers "Get started in English" and "Empezar en español". Each sets the interface language.
  • The welcome screen acknowledges the institutions and people who have made Captua possible. A QR code on the Credits page leads to the project's page on the AMPL website.

Name on the network

  • The interface is now at http://captua.local. An update renames a unit still called digitool to captua, and the unit still answers at digitool.local, so existing bookmarks still work.
  • The unit's own screen reaches Captua without going through the network, so it keeps working when the Wi-Fi drops.
  • After this update the unit's screen asks for the language once, because the kiosk now opens a different address.

Updates

  • A failed update puts the previous version back when that loses nothing. Otherwise it leaves the unit stopped, with a record of what happened and how to resolve it, so the unit never starts on code and a database that don't match.
  • An update refuses to install a checkout with local changes, or a version older than the one installed.
  • A rollback refuses to go ahead when restoring the backup would cut volumes off from their files, and lists them.
  • The unit's logs no longer record the session tokens that image and download addresses carry.

For units already in use

  • Units on which images were captured before this release need a few one-time steps after updating. These are command-line tools run by whoever manages the unit:
    • recording copies already in the bucket, including those Fisqua made under the new file names;
    • raising a volume's capture number past the numbers those copies use;
    • marking files already removed from the unit as freed;
    • recording checksums for older previews.
  • The order matters, and it is set out in the deployment guide.
  • The unit's settings can now use CAPTUA_ names, and Configuración shows them. Captua still reads the old DTK_ names. If a setting is given under both names, the CAPTUA_ value applies.

Known limits

  • The digitisation list is imported by uploading the file. It has no screen yet, and doesn't yet arrive from Fisqua on its own.
  • Space on the unit can be freed only once a volume is in a bucket. A way to free space that doesn't need a bucket is planned: a copy of the volume to three separate media, checked before anything is removed.

Links

Acknowledgments

Captua is developed at the Archives, Memory, and Preservation Lab of the University of California, Santa Barbara and at the University of Texas at Austin. It has been made possible in part by a major grant from the National Endowment for the Humanities: Democracy demands wisdom. (NEH Award HAA-304052-25: "Digitization Toolkit: a Blueprint for Egalitarian Access to Technology in Low-Resource Environments".)

Any views, findings, conclusions, or recommendations expressed in this software do not necessarily represent those of the National Endowment for the Humanities.

National Endowment for the Humanities


Español

0.1.0-beta es la primera versión hecha para probarse en el trabajo diario de un archivo. Se probó con una sola configuración: un equipo Captua (el...

Read more

Captua 0.0.0-pre.3

Captua 0.0.0-pre.3 Pre-release
Pre-release

Choose a tag to compare

@juancobo juancobo released this 24 Jul 23:27
1d798c2

The first release under the software's name, Captua, and the first validated end-to-end on real hardware: a fresh Raspberry Pi 5 was provisioned from the written documentation and taken through both camera backends, power-cut recovery, and the full update and rollback cycle on the bench (July 23–24). Everything integrated since 0.0.0-pre.2 is included. Captua remains pre-alpha.

Added

A name and a visual identity
The software is now Captua. The release completes the renaming throughout the interface and ships the new identity: the Captua logo and wordmark, light and dark favicons, and Mulish as the interface typeface.

Per-unit secrets at first boot
Captua ships as a cloned SD card, and anything on the card at imaging time is copied bit-for-bit onto every unit — including credentials. A new first-boot service detects placeholder or cloned secrets before the application starts, generates a per-unit signing key and database password, rotates the live Postgres password crash-safely, and records the Pi's hardware serial so a card moved to a new machine regenerates on its own. Imaging a test-booted master is now safe.

Safe updates, with a way back
The update script now dumps the database before migrating, does all its network work before stopping the service, refuses to run unattended when it cannot confirm the update is offline-safe, and verifies the stack came back up. A companion rollback script restores the pre-update dump and returns the code to the last recorded deployment — never blindly to the current tip.

Storage on removable media
External drives can be mounted, activated as the projects storage root, and safely unmounted from the interface. The privileged operations run through a scoped helper with a single sudoers entry, replacing the previous open-ended mount permissions; unmounting a drive that is the active storage automatically reverts to internal storage.

A firewall, and kiosk escape hatches
Provisioning now closes the appliance's LAN surface to the web interface, SSH, and mDNS only. The kiosk gets two documented recovery paths out of the box: Ctrl+Alt+F2 drops to a terminal (Ctrl+Alt+F1 returns), and a dtk-no-kiosk file on the boot partition skips the kiosk for a session.

Interface in Spanish and English
The interface now runs from a full bilingual catalog, selected at login; the choice persists across reboots.

Integrity checking
Administrators can reconcile the database, the files on disk, and the capture manifests from a single endpoint. The check is strictly read-only — it reports discrepancies and never deletes or moves anything. The backend also refuses to start on an unmigrated database, failing visibly instead of running against a wrong schema.

Honest clocks
The Pi has no battery-backed clock, so a power cut used to scramble capture timestamps. Setup now installs fake-hwclock and chrony: time persists across reboots and corrects itself whenever the unit is online.

Fixed

Provisioning survives a fresh start
A verbatim run of the documented setup previously failed several ways: the setup script had lost its executable bit, nothing created the environment file (leaving the database half-initialized with wrong credentials), and the nginx image was never pulled — so a card shipped offline crash-looped on first boot. All fixed; setup also now installs the camera system packages explicitly and adds the operator to the docker group.

Cameras work against the pinned environment
The locked Python environment was ABI-incompatible with the system camera stack, so the ArduCam backend reported no cameras on a fresh install; the DSLR backend's bundled USB library detected nothing even when the command-line tools saw both bodies. The environment now pins numpy below 2 and builds python-gphoto2 from source against the system library. Camera import failures also now report the real error instead of a misleading claim about the operating system.

Capture and display
Collections over one hundred records display in full. The thumbnail strip keeps a stable order under rapid consecutive captures. The collection hierarchy endpoint no longer errors on nested collections. Uploads are size-capped with orphaned files cleaned up on failure. Renaming a project moves its file tree along with it. Storage-override writes are atomic, and a corrupt override file now fails loudly instead of silently falling back.

Sessions and permissions
Session handling got a guard against expired tokens, camera status checks are auth-aware, camera controls are admin-only, annotation deletion is properly guarded, and authentication failures return explicit 401s.

Known limitations

Updating an existing unit requires a current pixi (the lockfile is now format v7) — check pixi --version on target hardware first. The in-backend guard against placeholder secrets is not yet implemented; the systemd ordering is the operative protection. ArduCam dual capture runs seven to eight seconds per pair at medium resolution (DSLR: about four) — optimization is tracked. The frontend is pinned at the bench-tested state; the volume workflow and bug-report panel land next cycle.

Documentation

Acknowledgments

Captua is developed by Adelaida Ávila, Juan Cobo Betancourt (grant PI), Jairo Melo Flórez, Santiago Muñoz Arbeláez (grant co-PI), Lucrezia Pograri, and Catalina Salguero at the Archives, Memory, and Preservation Lab of the University of California, Santa Barbara and at the University of Texas at Austin.

Captua has been made possible in part by a major grant from the National Endowment for the Humanities: Democracy demands wisdom. (NEH Award HAA-304052-25: "Digitization Toolkit: a Blueprint for Egalitarian Access to Technology in Low-Resource Environments".)

Any views, findings, conclusions, or recommendations expressed in this software do not necessarily represent those of the National Endowment for the Humanities.

National Endowment for the Humanities

0.0.0-pre.2

0.0.0-pre.2 Pre-release
Pre-release

Choose a tag to compare

@jairomelo jairomelo released this 31 May 08:28
d65dc7c

Added

  • DSLR camera support via gPhoto2 — Canon EOS and compatible USB cameras now work alongside picamera2. Backend auto-selects via CAMERA_BACKEND=gphoto2 env var.
  • RAW (CR2) capture — Selecting RAW or RAW+JPEG format now correctly saves .cr2 files. Previously the camera silently fell back to JPEG on every capture.
  • Orientation / rotation control — Per-camera post-capture rotation (0°, 90°, 180°, 270° CW) for scanning manuscripts in portrait orientation. JPEG captures are pixel-rotated via Pillow; CR2 files receive an EXIF Orientation tag via piexif so RAW converters auto-rotate.
  • Live preview rotation — The camera feed in the live-preview viewport reflects the selected rotation in real time so operators can frame shots correctly before capturing.
  • Floating rotation buttons on each camera feed — Quick-access ↺ / ↻ buttons float over each camera feed (bottom-centre). Clicking them updates both the live preview rotation and the capture rotation without opening the sidebar. State stays in sync with the sidebar orientation control.
  • Nginx reverse proxy — All traffic now routes through Nginx on port 80 (/api/* → backend, /* → frontend). Eliminates hard-coded port references in the browser.
  • Network discoverability — Raspberry Pi is accessible on the local network by hostname (digitool.local) and by IP. HOST_IP and CORS origins are configured dynamically at startup.
  • Documentation service — Quarto-based docs rendered and served via Docker; includes device-setup guides for CM4 and Pi 5 + IMX519.
  • SD card distribution guide — New developer documentation for distributing pre-imaged SD cards.
  • gPhoto2 device-setup guide — Step-by-step instructions for connecting Canon DSLR cameras.

Fixed

  • CR2 thumbnail in record viewer — The modal image viewer (img-viewer-frame) now shows a renderable JPEG instead of sending the .cr2 file directly to the browser (which browsers cannot display). The _preview.jpg sidecar is served when available.
  • image_format reverse mapping — Camera configuration now correctly returns human-readable values (JPEG, RAW, RAW+JPEG) instead of internal PTP strings.
  • Capture path mismatch — GPhoto2Backend.capture_image() previously returned the originally requested .jpg path even when the camera had saved a .cr2 file. It now returns the actual saved path.
  • imageformat reset on every capture — apply_dslr_config() was overwriting the camera's format setting to JPEG on every shot when no explicit format was configured. It now skips the PTP write when image_format is None, leaving the camera's own setting intact.
  • Record format field hardcoded to "jpg" — The format stored in the database now reflects the actual file extension (e.g. "cr2").

Notes

  • Project remains pre-alpha pending replication and validation on additional machines.
  • Default capture orientation is 90° (portrait) to match typical book/manuscript scanning setups.
  • piexif must be present in the pixi environment (pixi run python -c "import piexif") for CR2 EXIF rotation to apply.

0.0.0-pre.1

0.0.0-pre.1 Pre-release
Pre-release

Choose a tag to compare

@jairomelo jairomelo released this 26 May 17:18
16e82e2

What's Changed

New Contributors

Full Changelog: https://github.com/UCSB-AMPLab/digitization-toolkit-software/commits/pre-alpha