-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Blur a zone in a picture #32
Comments
The problem is more important than i though. |
Haha well I appreciate my French brothers and sisters for being the test cases for progressive legislation. It gives the rest of the world a chance to see what works and doesn't work practically when actually implemented by society :P However this sounds like a fun problem to work around. I could probably add in blurring and plate hashing support in the near future. Can the plate numbers be stored in the database and simply not shown on the website, or is it illegal to even store them at all? |
2 points:
And we can't host in another country, moving personnal data a country without agreement with CNIL is even more forbidden. |
I've talked with other geek bikers and nobody agrees if plates are a personnal data . So, i will ask to CNIL. |
Well, i've the final word! So, cibl can't be deployed in France as is. |
Date + plate = identity? Not sure how that works, but if the government thinks that's so then that's the final word I guess. However, I could easily add a configuration option to not require the date field (Or remove it altogether) - As well as one to disable plate searches. Or combine all these changes into one config option and call it CNIL Mode. ...Was CNIL a play on words? Because in English one is inclined to pronounce it "See Nil", as in "See Nothing" :P |
FYI I can probably implement this option next week, I'm away from home this week so I've confined myself to CSS changes only for the next few days. |
Really thank you. It's really great to give free time for side projects! |
We are checking out if we could use this in another EU country too, and seems that covering the plate and not even record it as text to database would be the safest way to avoid problems. And of course this should be done quite automatically so that admins don't usually have to do any manual editing before I was checking how to use the ALPR data coordinates to draw a black box or something to the photo, but it only has the starting coordinates, not the size of the plate in photo. To be continued. |
It returns the four corner coordinates of every plate it finds in the photo, in plate['results']['coordinates'] as four [x,y] arrays. It's not a rectangle, since the a photograph warps the shape due to perspective, but those four coordinates do form a polygon wrapping the plate. With that data you can have an image editing library like imagemagick blur or black out the region. Check out lines 200-236 in index_actual.php, that's my listener for the request to OpenALPR's cloud API. Within that block I actually use the four coordinates of every plate returned to determine their centers, so that if there are multiple plates identified in the photo the submit form fills in the plate field with the one closest to center of image, and not the plate of the poor bystander who might be parked legally at edge of photo :) You can probably adapt that code to instead use the corner coordinates to inform a blur/blackout function. |
And people faces, or anything that can identify someone. |
I'm looking at FaceRect to provide face locations for blurring: http://apicloud.me/apis/facerect/demo/ I haven't started coding anything yet though, if you'd like to take a crack at it please do. |
If a user uploads a photo with a face, it's forbidden to publish it in France.
And we don't want trials!
The text was updated successfully, but these errors were encountered: