Can I access Image detection YOLOv4 Library in Java

16 views
Skip to first unread message

Devendra Dhole

unread,
May 5, 2021, 4:13:11 AM5/5/21
to Py4J Support and Comments
I am working on a project where we are capturing Image from client and detecting image content. We have written everything in java. 
I am looking for suggestion should we write separate service in python itself or I can go with using connecting java with python?
I might sound dumb by this question but i am really looking out to learn from it.

  

Piotr Wittchen

unread,
May 5, 2021, 4:41:44 AM5/5/21
to Py4J Support and Comments, devendr...@gmail.com
Hi,

I don't know this library (yolov4), but I briefly looked at the documentation. In my opinion, better solution would be to create a separate Python project for image detection, store results of its work somewhere (e.g. in the database, files, etc.) and then access it from the Java projects. Another solution, may be creating REST webservice in Python, which will be a facade for the yolov4 library and then access it from Java via REST. This library seems to be complicated and uses tensorflow as far as I see. I know that tensorflow works differently with different versions of Python and I'm not really sure if Py4J is compatible with all versions of Python (probably not). Connecting this library with Java via Py4J may be possible, but I think it will be very problematic.

Regards,
Piotr

Devendra Dhole

unread,
May 6, 2021, 12:46:51 AM5/6/21
to Py4J Support and Comments, piotr.w...@gmail.com, Devendra Dhole
Hi Piotr,
Appreciate your response. Yes this library is something to do with Image detection through tensor flow and other.

I think i should create separate service for this. I need to call it from mobile so I believe I can consume it separately.

Btw thank you you once again for the genuine response..

Regards,

Devendra 
Reply all
Reply to author
Forward
0 new messages