Extract the Date and Time an Image was taken using OpenCV!!! [closed]

asked 2016-08-31 06:25:25 -0600

babajj gravatar image

updated 2016-08-31 06:59:01 -0600

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,

edit retag flag offensive reopen merge delete

Closed for the following reason question is off-topic or not relevant by berak
close date 2016-08-31 07:26:54.105567

Comments

3

rather off-topic ;(

berak gravatar imageberak ( 2016-08-31 06:40:24 -0600 )edit
2

you can save the image like 2016-08-31-14-48-36.jpg using date and time of saving time.

sturkmen gravatar imagesturkmen ( 2016-08-31 06:49:03 -0600 )edit

@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 gravatar imagebabajj ( 2016-08-31 07:00:38 -0600 )edit

@babajj, why wouldn't that work ?

berak gravatar imageberak ( 2016-08-31 07:09:43 -0600 )edit
2

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 gravatar imageberak ( 2016-08-31 07:20:19 -0600 )edit

@berak. Thank you for the comment, but anything related to images or image processing is related to Opencv.

babajj gravatar imagebabajj ( 2016-08-31 08:02:43 -0600 )edit
1

have a look at the FAQ, please.

berak gravatar imageberak ( 2016-08-31 08:21:35 -0600 )edit
1

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.

Eduardo gravatar imageEduardo ( 2016-08-31 12:49:28 -0600 )edit

@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 gravatar imagebabajj ( 2016-08-31 20:39:01 -0600 )edit

@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 ...

StevenPuttemans gravatar imageStevenPuttemans ( 2016-09-01 03:30:38 -0600 )edit