Python hard - comparison of images in
There is a picture
In him
Picture 1
Picture 2
I need to compare image 1 with image 2
Showing a coefficient similar
All photos are color inventions of products on white.
In couples compared are identical and completely unlike images.
But even the photographs of identical goods can differ both by the size of the object itself and by the size of the white fields around the product.
That is, you need to first drop the white background before comparison, and then bring the comparative pair to the same size.
There is a base of approximately 10k pairs of already compared manual goods.Compare hands, accordingly, the majority ok, but there are errors.
As I understand, on this basis you can learn the model.
Python scripts must be called from the command line, and get as parameters the path to the photos
Now the photo comparison is realized in this way.
from skimage.metrics import structural_similarity
Imported cv2
Imports by SYS
print(sys.argv )
print(sys.argv[2])
image1 = cv2.imread(sys.argv[1])
image2 = cv2.imread(sys.argv[2])
image1 = cv2.cvtColor(image1, cv2.COLOR_BGR2GRAY)
image2 = cv2.cvtColor(image2, cv2.COLOR_BGR2GRAY)
similarity = structural_similarity(image1, image2)
print('result~~~', similarity)
It does not always give logical results.
Client's review of cooperation with Vladislav V.
Python hard - comparison of images inand thank you. It’s quick and clear!
We continue cooperation
Freelancer's review of cooperation with Mike K
Python hard - comparison of images inThe task was set clearly and clearly, and there was a comfortable time to perform. It was a pleasure to cooperate!
-
404 10 0 Good day !
I have a ready decision. Write to me in a private message.
-
274 I can write the code according to your technical task. The task is clear and I have an opinion about its performance.
-
Доброго дня, надайте, будь ласка, посилання на базу з зображеннями.
-
Current freelance projects in the category Python
Application developmentI wish to create a mobile application for communication, the app should have audio and video calls, group chat creation, the ability to sync with phone contacts, account settings: email binding, 2FA, phone number, the ability to customize app notifications, change the app… Java, Python ∙ 13 hours 42 minutes back ∙ 26 proposals |
Setting up two-way integration of WhatsApp with Odoo CRMHello! We are looking for a specialist to implement a technical task for setting up a two-way integration of the WhatsApp messenger with the Odoo CRM system. ⚠️ Important technical clarification: The official WhatsApp Business API (WABA) is not considered. It is necessary to… Python, Web Programming ∙ 23 hours 37 minutes back ∙ 22 proposals |
Data parsing through mobile APILooking for a person with experience in data parsing through mobile API, for parsing e-commerce, rozetka and similar sites. Tasks: 1. Intercepting traffic from the mobile application (Android), setting up a proxy, analyzing requests. 2. Identifying the necessary API endpoints… Python, Data Parsing ∙ 2 days 20 hours back ∙ 30 proposals |
Find a product feed (Google Merchant XML) for a website on OpenCart
16 USD
It is necessary to find a direct link to the active product feed (XML) of a competitor for Google Merchant Center Platform (CMS): OpenCart / ocStore Find the original feedRequirements for the result: Working link to the XML file Python, Data Parsing ∙ 8 days 5 hours back ∙ 29 proposals |
Development of a TikTok farm (content factory)It is necessary to develop a system for centralized management of multiple TikTok accounts with automatic content publishing, using individual proxies and simulating natural account activity. Functional Requirements1. Account Management Adding and removing TikTok accounts.… Python, Bot Development ∙ 8 days 16 hours back ∙ 23 proposals |