Web Forms :: Compare Two Images
Jun 8, 2012Which algorithm is most suitable for image processing i.e. compare two images in asp.net?
View 1 RepliesWhich algorithm is most suitable for image processing i.e. compare two images in asp.net?
View 1 RepliesI want visual studio 2010 MVC 4 Full code below metioned input, they are given input two face images to compare is same or different, so need mvc 4 code immediately.
face-verification
Input : First Image byte array and Second Image byte array
Ex:
{"firstimagedata":bytearray "secondimagedata":bytearray }
Output :
If same :
{"verification_status":"same"} If different :
{"verification_status":"different"}
When attempting to place controls in different content areas using Masterpages and trying to use a compare validator, I get the error: Unable to find control id 'txtStartDate' referenced by the 'ControlToCompare' property of 'cvlDate'. I have also attempted to set it within the c# code behind in page load: cvlDate.ControlToCompare = txtStartDate.ID and by using findControl there must be an easy way to achieve this?
<asp:Content ID="Content4" ContentPlaceHolderID="leftForm" Runat="Server">
<asp:Label ID="lblStartTimeEnter" runat="server" Text="Start Time:" Width="100px"/>
<asp:TextBox ID="txtStartTime"runat="server" MaxLength="50" Width="250"/>
</asp:content>
<asp:Content ID="Content4" ContentPlaceHolderID="rightForm" Runat="Server">
<asp:label ID="lblEndDateEnter" CssClass="formMargin labelInput" runat="server" Text="End Date:" Width="100px"/>
<asp:TextBox ID="txtEndDate" CssClass="formMargin" runat="server" MaxLength="20" Width="250" ClientIDMode="Static"/>
<asp:CompareValidator ID="cvlDate" runat="server" ControlToValidate="txtEndDate" ControlToCompare="txtStartDate" Operator="GreaterThan" Type="Date" ErrorMessage="Start Date must be before End Date" > *</asp:CompareValidator>
</asp:content>
I am using compare validator to compare date... But Its not working ...I have used calendar extender...with date format as "dd/MM/yyyy"...
View 3 RepliesI am trying to check for a condition such that a date in an input control (textbox) is not greater from a date 1 years from current date(exactly) and also it should not be less than a date 1 year back from current date. for eg. if today's date is "21/dec/1990" then usen cannot enter a date in textbox which is less than 21/dec/89 and it should not be greater than 21/dec/1991. for this i first tried to confirm the greater than condition, i wrote the following code:
<asp:TextBox
ID="TxtSessionFrom"
runat="server"></asp:TextBox>
<asp:CompareValidator
ID="CompareValidator1"
runat="server"
ControlToValidate="TxtSessionFrom"
ErrorMessage="CompareValidator"
Operator="GreaterThanEqual"
Type="Date"></asp:CompareValidator>
CompareValidator1.ValueToCompare=(DateTime.Now.AddYears(1).ToString());
but this gave an error: The value '' of the ValueToCompare property of 'CompareValidator1' cannot be converted to type 'Date'.
how to upload images to server(application/images folder) and retrive(display) from and on client PC for asp.net. its just for uplaoding logo directly to server folder and retriving from server to client. i am not getting server path on client pc for image.
View 5 Repliesi have the following scenario, i have a column of a gridview that shows me a text telling me is the user is allowed or not to access to some page, but now i just showing allow and deny, but i wanna show images that represent me the action, how can i do that?
View 3 Replies[Code]....
i am using asp.net with c#, i have table images
shop nvarchar(50),
imgc image
imgo image
iam saving images in a database but while retreving it is showing blank images. i want to display as thumb nail images
I'm using ASP.NET 4 Web forms routing, for example like this:
routes.MapPageRoute("page-browse", "{Language}/{Label}", "~/Default.aspx")
So the webadress could look like: http://localhost/mywebsite/eng/home
In the root of my website I have a folder "Images".
Image display works when I'm in the root of my website, e.g. by using http://localhost/mywebsite/default.aspx
But when using routing it doesn't work, because the image relative url will look at http://localhost/mywebsite/eng/images instead of http://localhost/mywebsite/images
Is there a way to prevent this using ASP.NET 4 Routing mechanism? Or is the only way to use absolute url's to images?
I have two textboxs consists of date.
Textbox1 = 11/09/2010
Textbox2 = 12/11/2010
I would like to compare those 2 dates actually months. If months are different i would like to do something else.
Why is this function not true?float riw;
riw = 3.33;
if(riw == 3.33) // < --- THIS IS EVALUATING FALSE?!?!
{
// do something
}
//but this is evaluating true below
if(riw > 3.33)
{
//do something
}
firstly i want compare id in two table and if id is available then data is insert i'm using this logic-
If s = "select AR.EmplID from AtdRecord AR ,HrEmployee HR where AR.EmplID= HR.EmplID " Then
Dim sql As String = "Insert into AtdRecord(EmplID,RecDate,RecTime,OperId,OperDate)Values('" & TextBox1.Text & "','" & TextBox2.Text & "','" & TextBox3.Text & "','0','0')"
Try------- End Try
but this is not working and it always run else condition data is not exist...
How can I get the Old and New Text value of a TextBox in TextChanged event?
View 7 RepliesI want to send messages between 6 AM to 7 PM on the same day. how to assign two fixed time values and compare the current time.
View 4 RepliesI need to compare 2 DataTables that do not necessarily have the same structure. One dataTable is the master (dtDB), the second dataTable (dtFORM) is what will have the changes, if any, but not necessarily all of the columns of dtDB. In both tables the first column will be the primary key and all columns that dtFORM has, dtDB will have.
There is another DataTable (dtResults) that will flag the differences
This is where I am at so far:
[Code]....
I have a problem that is frustrating me to death. I am taking a date from a textbox and trying to see if the date has passed yet, but the datetime.compare function is giving me bad results when the date is today's date. Here is my code:
[Code]....
When I output to console, I get a value of "-1" even though the dates are exactly the same.
I added all that Addhours,minutes,seconds garbage to try to troubleshoot the problem, but I get the same result even without it.
I added a stoppoint and stepped through the code, and the date values it is comparing are identical, yet it gives me a value of -1 instead of 0.
I am making a form in which there are two textbox one should display current date and another
Should display date on user requirment but that date should not be equal to current date or before current date and i m using calender extender .
how to count the common data from two dropdownlist control.ex..
1st dropdownlist have 1 2 3 4
2 nd dropdownlist have 3 4 5
so the count of common value is 2 (3 4)..how to calculate this.
How we can compare the value of textbox which laye on different page check whether both the value is same or not if yes ok if no generate an error that value not match.
View 1 RepliesI have txtDate in form asp.net. First time I manual input date in txtDate (txtDate=”06.04.2016”). Program must automatically change Date in txtDate every day not depend from system date. For example:
Today 06.04.2016
Tomorrow 07.04.2016
After tomorrow 08.04.2016.
But every time run program must check txtDate with system date and compare it’s. if txtDate equal system date then program run else show message please check system date. Here I don’t want complete txtDate from system date.
I need to know one Comparisons in CSV like this...
These are the columns in CSV 1 and CSV 2 :
Dekking id; Dekking; Acnv_id; Acnv description; From ; To; Value
Sample From CSV 1 Data :
Columns 1
499; Algemene Contractspecificaties; 122; Periodiciteit; 15/01/16; 15/01/16; 48
Columns 2
500; Opbouw Pensioenreserve; 130; Premietaks Tak 24; 15/01/16; 15/06/32; 29
Sample From CSV 2 Data :
Columns 1499; Algemene Contractspecificaties; 122; Commerciële; 08/01/16; 08/06/32; 12
Columns 2
500; Opbouw Pensioenreserve; 130; Waarborg 23; 08/01/16; 08/06/32; 29
I need to know how to compare these two columns from the column "Acnv description;" to "Value" as mostly the values from "Dekking id" to "Acnv_id" would be mostly common.
How to compare the values sepately FROM "Acnv description;" to "Value" Columns values IF the Columns "Dekking id; Dekking; Acnv_id;" MATCHES.
Dekking id; Dekking; Acnv_id; Acnv description; From ; To; Value
How to compare only these columns in the CSV ...
I've been trying to get image caching working for the last 8 hours and I keep the same problem time and time again, I'm trying to cache Images at the moment and then when thats succesful, apply this to cache my js and css files. I have at the moment Sql Dependancy caching working on my dynamic pages but the page still takes to long due to images not caching.
What I have tried is going to IIS7 Management and adding HTTP Response Header for the images folder and setting various things for the cache control.i dont care how long it caches it on the client or on the proxy servers i just would like it to check when the file was modified and compare it with the one in the client or proxy cache and if they are different then fetch the new image which has been ftp up. i could solve this by changing the image name but the thing is the image name is generated when they are ftp'd to the site by an application and the name is a direct reference to the product so i cant change the name each time, as it would mean making a lot of otherpages accross the board.
so What i would like, is to set and expiry date of lets say 32 days or more on the images and then check to see if they have changed by date modified or some other way of checking(Etags maybe) I'm not sure, if they have changed on the server then redownload and recache them, I tried using post-check and pre-check together but that just permantly cached them, so when i change the image the only way it would display the new image is to just hit F5.
In Brief, how can i Cache images, on the client machine/ proxy cache and recache them when the modified date of the file has changed.
I want to show on one of my pages a slideshow type page. Basically I want it to show a selection of images from a folder and have the images scroll from right to left.
View 8 RepliesI want to write one program by visual studio 2008 (C# and ASP) that has web application and windows application.
I want to get clients images in web app(upload) and store them in DB (mysql) then send these images to windows app via web service (so i new web service, not web site). But i have 2 problems:
I have 2 ways to store images in mysql, first i should have BLOB field in DB -that it takes more space-, second i should save just name of each image in DB(so have image in one folder) -in this way i don't know how get image from clients and store them in that folder-. which one? Or what other? How (code) can i transfer image via web service(Byte[] or? ).
I wanted to combine app_themes css files into one on the fly. I did so using Mads Cristensen technique. But now all elements that has background image defined through css (see picture) don't display image. I believe that is because css files are not relatively referenced anymore (../), but through axd file. I'm trying to fix this by changing reference to image files without success. I already tried background: url("~/App_Themes/44/images/myimage.gif") and this works for pages that combined css. But the problem is that there are other pages in this project that don't use this css combining and now they lost reference to background images.
View 1 Replies