Find Jobs
Hire Freelancers

Fix bug in Objective C OpenCV based Sobel edge detector code

$30-250 USD

Inställt
Publicerad ungefär fem år sedan

$30-250 USD

Betalning vid leverans
hi I have a openCV based Objective C project for video which works correctly by itself, where I am trying to calculate intensity gradient using Sobel operator using the stack overflow example ([login to view URL]) but it is giving me error. I need to calculate average gradient and resulting direction of image from phone. Can you please fix the error. STACK OVERFLOW CODE Mat img = imread("[login to view URL]", IMREAD_GRAYSCALE); // compute the image derivatives for both the x and y direction Mat dx, dy; Sobel(img, dx, CV_32F, 1, 0); Sobel(img, dy, CV_32F, 0, 1); Scalar average_dx = mean(dx); Scalar average_dy = mean(dy); double average_gradient = atan2(-average_dy[0], average_dx[0]); cout << "average_gradient = " << average_gradient << endl; And to display the resulting direction Point center = Point([login to view URL], [login to view URL]); Point direction = Point(cos(average_gradient) * 100, -sin(average_gradient) * 100); Mat img_rgb = imread("[login to view URL]"); // read the image in colour line(img_rgb, center, center + direction, Scalar(0,0,255)); imshow("image", img_rgb); waitKey();
Project ID: 18711611

Om projektet

2 anbud
Distansprojekt
Senaste aktivitet fem år sedan

Ute efter att tjäna lite pengar?

Fördelar med att lägga anbud hos Freelancer

Ange budget och tidsram
Få betalt för ditt arbete
Beskriv ditt förslag
Det är gratis att registrera sig och att lägga anbud på uppdrag
2 frilansar lägger i genomsnitt anbud på $225 USD för detta uppdrag
Använd avatar
Dear client, Thanks a lot for taking your precious time to read my message. After browsing your job description, I am very interested in your project and I believe I’m qualified for the task. Regarding OpenCV, I have +10 years in this field and have worked on many successful image processing projects in the past. If you are looking for a highly skilled and rich experienced OpenCV expert with a deep knowledge, a professional attitude, excellent communication skills and the highest code quality, then I'm the person you are looking for. I'd like to talk more about this. If given a chance, I am highly confident in my ability to deliver the highest quality. I am confident that my involvement in your project will bring it to a successful launch, on time and within budget. I look forward to hearing from you. Kind Regards
$250 USD Om 3 dagar
5,0 (45 omdömen)
6,7
6,7
Använd avatar
How are you? Like you see in my profile and portfolios, I have rich experience in C/C++, C#, and Python programming. Especially, I completed many image processing projects with OpenCV. I would like to discuss with you and get more detail requirements. Please give me your details, then I will provide best solution for you. Thanks
$200 USD Om 3 dagar
0,0 (0 omdömen)
0,0
0,0

Om kunden

Flagga för UNITED STATES
SOUTH LYON, United States
5,0
6
Verifierad betalningsmetod
Medlem sedan okt. 8, 2017

Kundverifikation

Tack! Vi har skickat en länk för aktivering av gratis kredit.
Något gick fel med ditt e-postmeddelande. Vänligen försök igen.
Registrerade Användare Totalt antal jobb publicerade
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Laddar förhandsgranskning
Tillstånd beviljat för geolokalisering.
Din inloggningssession har löpt ut och du har blivit utloggad. Logga in igen.