This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
auto_barcodes [2022/03/08 13:06] yves created |
auto_barcodes [2022/03/08 13:28] (current) yves |
||
|---|---|---|---|
| Line 7: | Line 7: | ||
| ==== The role of PMA.core ==== | ==== The role of PMA.core ==== | ||
| - | PMA.core has a built-in mechanism to retrieve metadata from for a slide through a back-end API call: | + | [[https://www.pathomation.com/pma.core|PMA.core]] has a built-in mechanism to retrieve metadata from for a slide through a back-end API call: |
| {{::barcode0_10.png?400|}} | {{::barcode0_10.png?400|}} | ||
| Line 17: | Line 17: | ||
| There's a catch however: interpreting barcodes pasted on physical slides requires a lot of computation time; it's essentially an image recognition task. | There's a catch however: interpreting barcodes pasted on physical slides requires a lot of computation time; it's essentially an image recognition task. | ||
| - | This means that for a given repository of slides, we _don't_ automatically know all their barcodes; we only know those after the code is invoked that parses that barcode image. | + | This means that for a given repository of slides, we //don't// automatically know all their barcodes; we only know those after the code is invoked that parses that barcode image. |
| This also may seem counter-intuitive: why would you want to reverse-map a barcode back to a slide, if you actually have to lookk at the original slide in the first place? | This also may seem counter-intuitive: why would you want to reverse-map a barcode back to a slide, if you actually have to lookk at the original slide in the first place? | ||
| Line 31: | Line 31: | ||
| {{::barcode1.jpg?400|}} | {{::barcode1.jpg?400|}} | ||
| - | You may already know how to create a link to the slide by means of its full path: | + | You may already know [[auto_slides|how to create a link to the slide by means of its full path]]: |
| + | |||
| + | ''%%https://server/pma.studio/?serverUrl=https%3A%2F%2Fserver%2Fpma.core%2F&path=path%2Fto%2Fslide%2FPhilips02_UZBSet0213.tiff%%'' | ||
| + | |||
| + | The link to reference to it via barcode is similar. When you know the barcode of the particular slide is ''UZBset0213'', this new link becomes: | ||
| + | |||
| + | ''%%https://server/pma.studio/?serverUrl=https%3A%2F%2Fserver%2Fpma.core%2F&barcode=UZBset0213%%'' | ||
| + | |||
| + | The result of the two links is identical to the end-user: | ||
| + | |||
| + | {{::barcode2.jpg?400|}} | ||
| + | |||
| + | ==== Syntax ==== | ||
| + | |||
| + | When | ||
| + | * PMA.studio runs at ''%%https://server/pma.studio%%'', and | ||
| + | * Your content resides on PMA.core ''%%https://server/pma.core%%'', and | ||
| + | * Your barcode is ''ABC123'' | ||
| + | |||
| + | You can create a link to the slide associated with the barcode via the call | ||
| + | |||
| + | ''%%https://server/pma.studio/?serverUrl=https%3A%2F%2Fserver%2Fpma.core%2F&barcode=ABC123%%'' | ||
| - | https://devtest.pathomation.com/test/pma.studio.2/?serverUrl=https%3A%2F%2Fdevtest.pathomation.com%2Ftest%2Fpma.core.2%2F&path=_sys_ref%2Fbrightfield%2FPhilips%2FPhilips02_UZBSet0213.tiff | ||
| - | The link to reference to it via barcode is similar, and looks like this: | ||