amazon-rekognition-video-analyzer
amazon-rekognition-video-analyzer copied to clipboard
Making it work with a USB camera
Thank you for this wonderful project and the extensive detailed documentation. Really appreciate the effort you have put into this.
All the steps worked wonderfully well on a Fedora 26 x86_64 machine with compiled opencv 3.3.1. The stack is created successfully too.
I do not have a IP camera (yet) and working on installing a IP camera app on my phone to test. In the mean time, I'm using a USB webcam Logitech C930e to test. pynt videocapture[20] does not seem to capture video frames.
pynt videocapture[20]
[ build.pyc - Starting task "videocapture" ]
[ build.pyc - Completed task "videocapture" ]
Any help would be appreciated if I have to pass any additional parameters for USB device. I will try the IP camera in the mean time.
Update: I tried with my mobile phone as a IP camera with MJPEG URL
I tried with pynt videocaptureip["http://192.168.1.152:8080/video",20] and it seemed to send the frames to kinesisvideostream
Sending image to Kinesis
{u'ShardId': u'shardId-000000000000', 'ResponseMetadata': {'RetryAttempts': 0, 'HTTPStatusCode': 200, 'RequestId': 'c522f282-6cb9-2cd6-978d-ddfbbadb0365', 'HTTPHeaders': {'x-amzn-requestid': 'c522f282-6cb9-2cd6-978d-ddfbbadb0365', 'content-length': '110', 'x-amz-id-2': 'ZTyss5Ot2YEZhJd4Kdxv2RYqBWPln516UxqBaH8fY0RgfRVeMGStsz3Mc/UIdAm5Geruzg7ZcrJirJf3P7hpxEOlps4jl8JR', 'server': 'Apache-Coyote/1.1', 'date': 'Sat, 16 Dec 2017 14:27:05 GMT', 'content-type': 'application/x-amz-json-1.1'}}, u'SequenceNumber': u'49579867999052921604973997075285380303137406195591020546'}
Sending image to Kinesis
{u'ShardId': u'shardId-000000000000', 'ResponseMetadata': {'RetryAttempts': 0, 'HTTPStatusCode': 200, 'RequestId': 'd8ba23df-732f-772c-8a15-0ca574241fbb', 'HTTPHeaders': {'x-amzn-requestid': 'd8ba23df-732f-772c-8a15-0ca574241fbb', 'content-length': '110', 'x-amz-id-2': 'cc1oyxBrHFve0Lz9cMKm80yUlLPdGC9zILSuWVgb5FmHbNEhoMElw1OEkNx77m8McOlK+vcltq0yS0IvSS/25rRZ78l6O/By', 'server': 'Apache-Coyote/1.1', 'date': 'Sat, 16 Dec 2017 14:27:05 GMT', 'content-type': 'application/x-amz-json-1.1'}}, u'SequenceNumber': u'49579867999052921604973997075286589228957020962204680194'}
Sending image to Kinesis
{u'ShardId': u'shardId-000000000000', 'ResponseMetadata': {'RetryAttempts': 0, 'HTTPStatusCode': 200, 'RequestId': 'edcf26ab-f849-0d30-bf60-09d7b5b10e2a', 'HTTPHeaders': {'x-amzn-requestid': 'edcf26ab-f849-0d30-bf60-09d7b5b10e2a', 'content-length': '110', 'x-amz-id-2': 'mCge6vcN3boBn1Lrig1a/f8tQBMl2+qJyT/yZEoOeZRgbr/kWqeWrm+uLqgPGaYZhxVHW0BwlYE9i4E4gIvJmkdW84DB7gxk', 'server': 'Apache-Coyote/1.1', 'date': 'Sat, 16 Dec 2017 14:27:07 GMT', 'content-type': 'application/x-amz-json-1.1'}}, u'SequenceNumber': u'49579867999052921604973997075287798154776635660098863106'}
Sending image to Kinesis
{u'ShardId': u'shardId-000000000000', 'ResponseMetadata': {'RetryAttempts': 0, 'HTTPStatusCode': 200, 'RequestId': 'e6294ec9-7901-a9e0-b486-61b4af638653', 'HTTPHeaders': {'x-amzn-requestid': 'e6294ec9-7901-a9e0-b486-61b4af638653', 'content-length': '110', 'x-amz-id-2': 'YBzluC+eWnbK5x8SNCfPIgOrO9kDk261ugwUHpLxRnk5A72+mmA0azGKLXJs15L1vNWnAQQWQxUGjxQHu0zHSrL3HzVnlcGf', 'server': 'Apache-Coyote/1.1', 'date': 'Sat, 16 Dec 2017 14:27:09 GMT', 'content-type': 'application/x-amz-json-1.1'}}, u'SequenceNumber': u'49579867999052921604973997075289007080596250426712522754'}
Sending image to Kinesis
Sending image to Kinesis
{u'ShardId': u'shardId-000000000000', 'ResponseMetadata': {'RetryAttempts': 0, 'HTTPStatusCode': 200, 'RequestId': 'f6b39bde-59e0-0d0e-a41c-b45e5eeb6599', 'HTTPHeaders': {'x-amzn-requestid': 'f6b39bde-59e0-0d0e-a41c-b45e5eeb6599', 'content-length': '110', 'x-amz-id-2': '439wE7xMJvmfD+AZb8Q1H5JaStQUy1HjDqqn2L+OLyejL56MuZJW7dBAM9P1JhdTA/kkSou+SFHcY2IE3DEQXuZa5kSfDhPX', 'server': 'Apache-Coyote/1.1', 'date': 'Sat, 16 Dec 2017 14:27:11 GMT', 'content-type': 'application/x-amz-json-1.1'}}, u'SequenceNumber': u'49579867999052921604973997075290216006415865193326182402'}
however nothing showed on the local browser on 8080 nor in the s3 bucket I could find the stored video frames nor the dynamodb EnrichedFrame table had any records of processed video frames. I'm not sure what am I missing?
Update: After reviewing my commands, I have missed a step. Will re-attempt this and report
This worked :) Now only if I could filter by object specifically human and search in collection .. :)
@mrcasablr hi,what IP camera app(on iOS) are you using? Can the Kinesis Video Stream client capture from it? thank you.
im using the "IP Webcam" app on android which is available from the play store. The free version has ads enabled. This worked well with the kinesis video stream client.
@mrcasablr thank you for your kind reply.
Hi mrcasablr, I am also facing the same issue ( i can see images are sending kinesis but nothing appearing in my browser) not sure what are the steps i missed here. Need your help.
Regards Devraj
Hello, I'm facing the similar issue, as im seeing "sending to kinesis" but i couldn't be able to see on the server screen nor in the s3. help me regarding