I have a problem statement which needs to be addressed

very urgently, I am tackling it since quite a long time, but could not progress in any direction, can anyone please help me for the same?
The task is to identify if the document inside the image is coloured or not.
This means that given a photo (taken from the camera of the phone of any document), I need to tell if the document is coloured or black and white.

5 ответов

15 просмотров

Wo..

Shivani- Автор вопроса
Shivani- Автор вопроса

Anyone?

I don't know for certain, but I have an idea..........Suppose you have an image(richard_feynman.jpg).....then execute the following code in a Jupyter Notebook: import cv2 import matplotlib.pyplot as plt img = cv2.imread("richard_feynman.jpg", 0) plt.imshow(img, cmap='gray') ............. If the displayed image matches your expectations, it indicates that the image is grayscale (black and white). If the displayed image does not match your expectations, it indicates a colored image.

Shivani- Автор вопроса

Похожие вопросы

Обсуждают сегодня

Только сейчас дошли руки до Orange pi 5. Это нормально что на нем YOLOv5s выдает 1 кадр раз в 2-3 секунды на CPU? Это без оптимизаций и прочих настроек, просто голый запуск че...
Denis
10
Так а кто может спарсить всех участников чата? Идишники
Magic
18
да пофиг на капчу зашел в чат и молчишь при этом ты нонейм? пошел вон
Magic
17
Всем привет! подскажите пожалуйста как можно увеличить качество фото?
Evgeniy
19
Доброе утро. Подскажите, если если 4 корутины, внутри которых VideoCapture, то будут ли они работать асинхронно? Т.к. нагуглил, что Videocapture в моменте может быть открыт то...
Alexander👨‍💻
19
Как удалить health check в Consul? Казалось бы, это должно быть не сложно, но я не могу найти в документации ничего про это, только про добавление service с health check "в н...
Roman
2
Гайз, а как отправлять с вейпора пуши на андроид? ) Меня вот осенило )))
Serg
11
Я пожалуй ещё раз брошу клич: кто-нибудь хочет в рабство в ОЭЗ Алабугу на позицию инженера CV? Работы много, задачи сложные, ЗП высокая. Я передам контакт напрямую в HR.
Maxim 👀 Osminin #Slowpoke3D
13
I have this grayscale image in opencv I want to change gray quadrilaterals to black like others It means i want to change gray color of specific color to black How can i do th...
@. .@
7
А как можно понять что пользовательская программа завершилась если она не вызывала сисколл exit?
One
4
Карта сайта