Category : image-segmentation

I am working on Indian License Plate Recognition where Character Segmentation not segmenting all the character from license plate for example plate number is: MH20EE7601 and segmented characters are H20EE7. and sometimes i am not getting any number How can i improve it? Character Segmentation on license plate My Code is: gray = cv2.cvtColor(box, cv2.COLOR_RGB2GRAY) ..

Read more

import numpy as np import torch import torch.nn as nn import torch.nn.functional as F import torchvision from PIL import Image import matplotlib.pyplot as plt class Model_Down(nn.Module): """ Convolutional (Downsampling) Blocks. nd = Number of Filters kd = Kernel size """ def __init__(self,in_channels, nd = 128, kd = 3, padding = 1, stride = 2): super(Model_Down,self).__init__() ..

Read more

import torch import torch.nn as nn import torch.nn.functional as F class double_conv(nn.Module): ”'(conv => BN => ReLU) * 2”’ def __init__(self, in_ch, out_ch): super(double_conv, self).__init__() self.conv = nn.Sequential( nn.Conv2d(in_ch, out_ch, 3, padding=1), nn.BatchNorm2d(out_ch), nn.ReLU(inplace=True), nn.Conv2d(out_ch, out_ch, 3, padding=1), nn.BatchNorm2d(out_ch), nn.ReLU(inplace=True) ) def forward(self, x): x = self.conv(x) return x class inconv(nn.Module): def __init__(self, in_ch, out_ch): ..

Read more

I’m using Google Colab to run a Mask RCNN instance segmentation based on this tutorial. My images are 2988 pixels in width and 5312 px. in height. I’m getting the following error when I run train(model) Epoch 1/10 ERROR:root:Error processing image {‘id’: ‘set6_00m.png’, ‘source’: ‘object’, ‘path’: ‘/content/drive/MyDrive/train/set6_00m.png’, ‘width’: 2988, ‘height’: 5312, ‘polygons’: [{‘name’: ‘ellipse’, ‘cx’: ..

Read more