Re: How to compare two image field properly

2022-02-28 Thread Muhammad Juwaini Abdul Rahman
If the image data is huge, that could take a long time. Maybe you can just compare the checksum? On Sun, 27 Feb 2022 at 23:31, Azzam Codes wrote: > one way that i know, not sure if best way to do it, > but you could first extract the fields of your model as: > `modelAFields = ModelA._meta.fiel

Re: How to compare two image field properly

2022-02-27 Thread Azzam Codes
one way that i know, not sure if best way to do it, but you could first extract the fields of your model as: `modelAFields = ModelA._meta.fields` `modelBFields = ModelB._meta.fields` then extract your image field eg.: `imageAField = modelAFields[0]` `imageBField = modelBFields[0]` then to disp

Re: How to compare two image field properly

2022-02-21 Thread Sencer Hamarat
Thanks but, no. I didn't mean the comparing content of the files. 19 Şub 2022 Cmt 21:55 tarihinde şunu yazdı: > OpenCV > > - Tom > > On Feb 19, 2022, at 2:27 AM, Sencer Hamarat > wrote: > >  > Hi, > > I have two different models which include image fields individually. > > Is there a proper wa

Re: How to compare two image field properly

2022-02-19 Thread tlockhart1976
OpenCV - Tom > On Feb 19, 2022, at 2:27 AM, Sencer Hamarat wrote: > >  > Hi, > > I have two different models which include image fields individually. > > Is there a proper way to compare those imagefileds? > > class ModelA(models.Model): > file = models.ImageField( > verbose_nam