Hi Anusha,

That's great to hear!
I was also focusing on per image storage, retrieval and if possible;
processing. Could the same implementation be applied directly to images
without a video stream?

If that's the case it would be awesome!

Thanks and regards.

On Wed, Jan 17, 2018 at 9:40 AM, Anusha Jayasundara <[email protected]>
wrote:

> Hi Nuwan.
>
> Even though I did video processing, In the end, the processing was done by
> per image. In my case, I resized the images into a 480p or 720p(most of the
> time videos was 1080p) and after the processing was done, saved them into
> the main storage in binary format. So you also can check the possibility of
> pre-processing the image before saving, since it can reduce the image size.
>
> Thank You,
> Anusha,
>
> On Tue, Jan 16, 2018 at 7:19 PM, Ramindu De Silva <[email protected]>
> wrote:
>
>> Hi all,
>>
>> [+]Anusha
>> Anusha has implemented a video processing solution. But it is not
>> integrated to the SP. Anusha, can you please explain how you stored and
>> processed the data in your solution? Maybe IoT team can get an idea.
>>
>> Best Regards,
>> Ramindu.
>>
>>
>> On Tue, Jan 16, 2018 at 4:03 AM, Nuwan Jayawardene <[email protected]>
>> wrote:
>>
>>> Hi All,
>>>
>>> Thanks for the feedback.
>>> Based on what everyone has said, I thought it was best to go ahead with
>>> using the *BinaryStream*.
>>>
>>> Will update this thread further along the way! :)
>>>
>>>
>>> On Tue, Jan 16, 2018 at 2:07 PM, Madawa Soysa <[email protected]> wrote:
>>>
>>>>
>>>>
>>>> On Tue, Jan 16, 2018 at 1:10 PM, Ruwan Yatawara <[email protected]>
>>>> wrote:
>>>>
>>>>> As to my knowledge, image analysis is not supported, and won't be
>>>>> supported in the near future.
>>>>>
>>>>> @Mohan, @Ramindu, please correct me if I am wrong.
>>>>>
>>>>
>>>> In that case, it is better to go with the BinaryStream approach.
>>>>
>>>> +1 for retrieving as a BinaryStream.
>>>>
>>>>
>>>>> Thanks and Regards,
>>>>>
>>>>> Ruwan Yatawara
>>>>>
>>>>> Technical Lead,
>>>>> WSO2 Inc.
>>>>>
>>>>> email : [email protected]
>>>>> mobile : +94 77 9110413
>>>>> http://ruwansrants.blogspot.com/
>>>>> https://500px.com/ruwan_ace
>>>>> https://medium.com/@ruwanyatawara
>>>>>
>>>>>
>>>>> On Tue, Jan 16, 2018 at 1:01 PM, Nuwan Jayawardene <[email protected]>
>>>>> wrote:
>>>>>
>>>>>> Hi Madawa,
>>>>>>
>>>>>> Have you evaluated this approach? What are the advantages and
>>>>>>> drawbacks in terms of storage and retrieval of images by following this
>>>>>>> approach?
>>>>>>
>>>>>>
>>>>>> I've yet to look more into this option. I was actually hoping for
>>>>>> some feedback on whether or not I should pursue this or stick with the
>>>>>> RDBMS approach since I'm not experienced enough with Siddhi to do a
>>>>>> knowledgeable assessment.
>>>>>> At the moment, for the use case at hand, a simple storage and
>>>>>> retrieval would suffice. But if we consider the long run IMO it would be
>>>>>> smarter to go with a Siddhi based approach.
>>>>>> Then again comes the issue of whether Siddhi streams support image
>>>>>> analytics.
>>>>>>
>>>>>> On Tue, Jan 16, 2018 at 12:50 PM, Madawa Soysa <[email protected]>
>>>>>> wrote:
>>>>>>
>>>>>>> Hi Nuwan,
>>>>>>>
>>>>>>> One other approach suggested to me was to use a *Siddhi Stream for
>>>>>>>> both storage and retrieval* purposes. This would further allow for
>>>>>>>> analytics to be performed on the data which not be very much possible 
>>>>>>>> with
>>>>>>>> the earlier mentioned approaches.
>>>>>>>
>>>>>>>
>>>>>>> Have you evaluated this approach? What are the advantages and
>>>>>>> drawbacks in terms of storage and retrieval of images by following this
>>>>>>> approach?
>>>>>>>
>>>>>>> On Tue, Jan 16, 2018 at 12:36 PM, Geeth Munasinghe <[email protected]>
>>>>>>> wrote:
>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> On Tue, Jan 16, 2018 at 10:52 AM, Nuwan Jayawardene <
>>>>>>>> [email protected]> wrote:
>>>>>>>>
>>>>>>>>> Hi all,
>>>>>>>>>
>>>>>>>>> I'm currently working on a project to add image storing
>>>>>>>>> and retrieval capabilities to the WSO2 IoT Server.
>>>>>>>>>
>>>>>>>>> To achieve this I have implemented the following;
>>>>>>>>> 1) Added a separate DAO Table with a field with LONGBLOB data type
>>>>>>>>> for storing.
>>>>>>>>> 2) Added storage capabilities in the database for an image sent as
>>>>>>>>> a *File *in the form of a *BinaryStream*.
>>>>>>>>>
>>>>>>>>> As of now, I've written unit tests and the test images are getting
>>>>>>>>> stored successfully in the database.
>>>>>>>>>
>>>>>>>>> The problem lies in how to successfully retrieve the stored data.
>>>>>>>>> For this, I have come across 2 possible approaches.
>>>>>>>>> 1) *Retrieve as a File - *The notable downside I realized with
>>>>>>>>> this solution is that each time a new Image is retrieved, a new file 
>>>>>>>>> will
>>>>>>>>> be created. Therefore measures would have to be taken to persist new 
>>>>>>>>> files
>>>>>>>>> while purging older obsolete ones.
>>>>>>>>> 2) *Retrieve as BinaryStream - *Although this requires no
>>>>>>>>> persistent memory usage and the data will only be retrieved on call 
>>>>>>>>> and
>>>>>>>>> issues may come up when representing that data from a UI end. Further
>>>>>>>>> analysis is required for this approach.
>>>>>>>>>
>>>>>>>>
>>>>>>>> +1 for retrieving as a BinaryStream. This will make it easy to
>>>>>>>> handle in the java level unlike handling as a file. This has to work 
>>>>>>>> in the
>>>>>>>> cluster of servers, hence retrieving as a file will cause other syncing
>>>>>>>> issues.
>>>>>>>>
>>>>>>>>
>>>>>>>>> 3) *Retrieve as FileOutputStream - *This is my preferred method
>>>>>>>>> and the one recommended mostly in forums and tutorials.
>>>>>>>>>
>>>>>>>>> One other approach suggested to me was to use a *Siddhi Stream
>>>>>>>>> for both storage and retrieval* purposes. This would further
>>>>>>>>> allow for analytics to be performed on the data which not be very much
>>>>>>>>> possible with the earlier mentioned approaches.
>>>>>>>>>
>>>>>>>>> Suggestions and Feedback are appreciated.
>>>>>>>>> Thanks and regards!
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> *Nuwan Jayawardene*
>>>>>>>>> *Software Engineering Intern*
>>>>>>>>> *WSO2, Inc.:http://wso2.com <http://wso2.com/>*
>>>>>>>>> *lean.enterprise.middleware*
>>>>>>>>> *Mobile  :- +94 71 1813299 <+94%2071%20181%203299>*
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>    - *Linkedin* *:- **https://www.linkedin.com/in/nuwa
>>>>>>>>>    <https://www.linkedin.com/in/nuwanjaya/>**njaya/
>>>>>>>>>    <https://www.linkedin.com/in/nuwanjaya/>*
>>>>>>>>>    - * <https://www.wso2.com/signature>*
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> *Geeth Munasinghe*
>>>>>>>> *WSO2, Inc. http://wso2.com <http://wso2.com/> *
>>>>>>>> *lean.enterprise.middleware.*
>>>>>>>>
>>>>>>>> email: [email protected]
>>>>>>>> phone:(+94) 777911226 <+94%2077%20791%201226>
>>>>>>>>
>>>>>>>> <http://wso2.com/signature>
>>>>>>>>
>>>>>>>> --
>>>>>>>> You received this message because you are subscribed to the Google
>>>>>>>> Groups "WSO2 IoT Team Group" group.
>>>>>>>> To unsubscribe from this group and stop receiving emails from it,
>>>>>>>> send an email to [email protected].
>>>>>>>> For more options, visit https://groups.google.com/a/ws
>>>>>>>> o2.com/d/optout.
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>>
>>>>>>> Madawa Soysa / Software Engineer
>>>>>>> [email protected] / +94714616050 <+94%2071%20461%206050>
>>>>>>>
>>>>>>> *WSO2 Inc.*
>>>>>>> lean.enterprise.middleware
>>>>>>>
>>>>>>>   <https://wso2.com/signature>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> *Nuwan Jayawardene*
>>>>>> *Software Engineering intern*
>>>>>> *WSO2, Inc.:http://wso2.com <http://wso2.com/>*
>>>>>> *lean.enterprise.middleware*
>>>>>> *Mobile  :- +94 71 1813299 <071%20181%203299>*
>>>>>>
>>>>>>
>>>>>>    - *Linkedin* *:- **https://www.linkedin.com/in/nuwa
>>>>>>    <https://www.linkedin.com/in/nuwanjaya/>**njaya/
>>>>>>    <https://www.linkedin.com/in/nuwanjaya/>*
>>>>>>    - * <https://www.wso2.com/signature>*
>>>>>>
>>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>>
>>>> Madawa Soysa / Software Engineer
>>>> [email protected] / +94714616050 <+94%2071%20461%206050>
>>>>
>>>> *WSO2 Inc.*
>>>> lean.enterprise.middleware
>>>>
>>>>   <https://wso2.com/signature>
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> *Nuwan Jayawardene*
>>> *Software Engineering intern*
>>> *WSO2, Inc.:http://wso2.com <http://wso2.com/>*
>>> *lean.enterprise.middleware*
>>> *Mobile  :- +94 71 1813299 <+94%2071%20181%203299>*
>>>
>>>
>>>    - *Linkedin* *:- **https://www.linkedin.com/in/nuwa
>>>    <https://www.linkedin.com/in/nuwanjaya/>**njaya/
>>>    <https://www.linkedin.com/in/nuwanjaya/>*
>>>    - * <https://www.wso2.com/signature>*
>>>
>>>
>>
>>
>> --
>> *Ramindu De Silva*
>> Software Engineer
>> WSO2 Inc.: http://wso2.com
>> lean.enterprise.middleware
>>
>> email: [email protected] <[email protected]>
>> mob: +94 719678895
>>
>
>
>
> --
>
> *Anusha Jayasundara*
> Software Engineer | WSO2
>
> Email : [email protected]
> Mobile : +94772601160 <+94%2077%20260%201160>
> Web : http://wso2.com
> Lean.Enterprise.Middleware
> <http://wso2.com/signature>
>



-- 
*Nuwan Jayawardene*
*Software Engineering intern*
*WSO2, Inc.:http://wso2.com <http://wso2.com/>*
*lean.enterprise.middleware*
*Mobile  :- +94 71 1813299*


   - *Linkedin* *:- **https://www.linkedin.com/in/nuwa
   <https://www.linkedin.com/in/nuwanjaya/>**njaya/
   <https://www.linkedin.com/in/nuwanjaya/>*
   - * <https://www.wso2.com/signature>*
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to