thomasbtf / document-anonymization Goto Github PK
View Code? Open in Web Editor NEWPersonal data redaction on images based on FHIR patient resources.
License: Apache License 2.0
Personal data redaction on images based on FHIR patient resources.
License: Apache License 2.0
Problematic data available under /local/data/prob-docs
rule preprocess_page:
input: results/5/uncompressed-docs/unpacked/2021-03-10.81304303.NoTitle/0.None.None.None
output: results/5/preprocessed-docs/unpacked/2021-03-10.81304303.NoTitle/0.None.None.None
log: logs/5/preprocess-page/unpacked/2021-03-10.81304303.NoTitle/0.None.None.None.log
jobid: 4111
wildcards: id=5, img=unpacked/2021-03-10.81304303.NoTitle/0.None.None.None
Select jobs to execute...
Activating conda environment: /home/tobias/git/document-anonymization/.snakemake/conda/98b5a3138345e48332173ef8adf6d54d
Activating conda environment: /home/tobias/git/document-anonymization/.snakemake/conda/98b5a3138345e48332173ef8adf6d54d
[Mon May 31 07:21:51 2021]
Error in rule preprocess_page:
jobid: 4111
output: results/5/preprocessed-docs/unpacked/2021-03-10.81304303.NoTitle/0.None.None.None
log: logs/5/preprocess-page/unpacked/2021-03-10.81304303.NoTitle/0.None.None.None.log (check log file(s) for error message)
conda-env: /home/tobias/git/document-anonymization/.snakemake/conda/98b5a3138345e48332173ef8adf6d54d
Error in rule preprocess_page:
jobid: 15966
output: results/1/preprocessed-docs/unpacked/2020-12-10.77953837.NoTitle/0.None.None
log: logs/1/preprocess-page/unpacked/2020-12-10.77953837.NoTitle/0.None.None.log (check log file(s) for error message)
conda-env: /home/tobias/git/document-anonymization/.snakemake/conda/98b5a3138345e48332173ef8adf6d54d
Traceback (most recent call last):
File "/home/tobias/git/document-anonymization/.snakemake/scripts/tmp0kbpokh0.preprocess-page.py", line 63, in <module>
processed_image = get_grayscale(image)
File "/home/tobias/git/document-anonymization/.snakemake/scripts/tmp0kbpokh0.preprocess-page.py", line 15, in get_grayscale
return cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
cv2.error: OpenCV(4.5.1) ../modules/imgproc/src/color.cpp:182: error: (-215:Assertion failed) !_src.empty() in function 'cvtColor
This was the case for
We should include a general test if the meta data (dictionary key) exists.
Within the documents, the timestamps should be falsified. E.g. by adding a random but fixed offset for all files of a patient. Of course, this must also happen with the same offset that we already use in the structured data, so that the data still fit together.
blockfehler= 1 err/ zeich | | (len/block)*dist
Traceback (most recent call last):
File "/local/data/dev/thomas/document-anonymization/.snakemake/scripts/tmpn0w1zv0b.extract-personal-data.py", line 128, in <module>
var_data = variate_personal_data(personal_data[0], personal_data[1])
File "/local/data/dev/thomas/document-anonymization/.snakemake/scripts/tmpn0w1zv0b.extract-personal-data.py", line 63, in variate_personal_data
for i, perm in enumerate(all_name_perms):
TypeError: 'NoneType' object is not iterable
Results in results/2/uncompressed-docs/.snakemake_timestamp.None.None.None.None.None.None.None.None.None.None.None.None.None.None.None.None.None
Our currently assumed structure:
Other seen format (from Tobias Brieden)
Other internal IDs, such as job numbers, would actually have to be removed as well, as I understand it.
Aufnahme- und Entlassungsdaten könnten auch Rückschluss auf Person erlauben. Müssen sie geschwärzt werden?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.