Extract the Date and Time an Image was taken using OpenCV!!! [closed]
Hello everyone, I wrote a program that capture an Image from a Webcam and save the image in a folder. Now , I want to extract the date and the time that Image was taken using Opencv. I will use this extracted date and time later in another Database Program.
Thanking you,
Best Regards,
rather off-topic ;(
you can save the image like 2016-08-31-14-48-36.jpg using date and time of saving time.
@sturkmen, thanks for the comment, but that won't work well if I want to use it later to save date and time in my database.
@babajj, why wouldn't that work ?
you could use OS functions to retrieve the timestamp of the file, you could try an external lib like ImageMagic , and see, if there's anything in the metadata, but again, none of this is related to opencv
@berak. Thank you for the comment, but anything related to images or image processing is related to Opencv.
have a look at the FAQ, please.
Quote: "but anything related to images or image processing is related to Opencv."?????
Thanks for the joke. Moreover, the problem is still the same if you change the picture variable with anything else, for example a video file or a text file.
@break. Thank you so much. I used the OS function you suggested and it works fine for me. @Eduardo You call it a Joke? Really ? I think it's better to share something if you have any.
@babajj your point is simply invalid. It is like stating that Apple needs to be able to answer any question regarding any computer system out there, even if it is not theirs ...