Find Jobs
Hire Freelancers

OpenCV error with Numpy 3d array

$30-250 USD

진행 중
게시됨 4년 이상 전

$30-250 USD

제출할때 지불됩니다
I am using this project to perform super resolution: [login to view URL] I want to use the high resolution image with OpenCV, but it keeps failing. I edited some parts of the code to return the variable 'image' in the method do_for_file. The object is a ndarray of floats of shape (x,y,3), I am assuming in an RGB image, but I am not sure. The error comes when I use: img_gris = [login to view URL](imgSR, cv2.COLOR_RGB2GRAY) [login to view URL]: OpenCV(4.1.2) /io/opencv/modules/imgproc/src/[login to view URL]: error: (-2:Unspecified error) in function 'cv::impl::{anonymous}::CvtHelper<VScn, VDcn, VDepth, sizePolicy>::CvtHelper(cv::InputArray, cv::OutputArray, int) [with VScn = cv::impl::{anonymous}::Set<3, 4>; VDcn = cv::impl::{anonymous}::Set<1>; VDepth = cv::impl::{anonymous}::Set<0, 2, 5>; cv::impl::{anonymous}::SizePolicy sizePolicy = (cv::impl::<unnamed>::SizePolicy)2u; cv::InputArray = const cv::_InputArray&; cv::OutputArray = const cv::_OutputArray&]' > Unsupported depth of input image: > 'VDepth::contains(depth)' > where > 'depth' is 6 (CV_64F) I tried to convert the floats to int, but then it showe the next error: img_gris = [login to view URL](img, cv2.COLOR_BGR2GRAY) [login to view URL]: OpenCV(4.1.2) /io/opencv/modules/imgproc/src/[login to view URL]: error: (-2:Unspecified error) in function 'cv::impl::{anonymous}::CvtHelper<VScn, VDcn, VDepth, sizePolicy>::CvtHelper(cv::InputArray, cv::OutputArray, int) [with VScn = cv::impl::{anonymous}::Set<3, 4>; VDcn = cv::impl::{anonymous}::Set<1>; VDepth = cv::impl::{anonymous}::Set<0, 2, 5>; cv::impl::{anonymous}::SizePolicy sizePolicy = (cv::impl::<unnamed>::SizePolicy)2u; cv::InputArray = const cv::_InputArray&; cv::OutputArray = const cv::_OutputArray&]' > Unsupported depth of input image: > 'VDepth::contains(depth)' > where > 'depth' is 4 (CV_32S) I want to use the high resolution image in my code without saving a .jpg file and calling [login to view URL]()
프로젝트 ID: 23520688

프로젝트 정보

2 제안서
원격근무 프로젝트
활동 중 4년 전

돈을 좀 벌 생각이십니까?

프리랜서 입찰의 이점

예산 및 기간 설정
작업 결과에 대한 급여 수급
제안의 개요를 자세히 쓰세요
무료로 프로젝트에 신청하고 입찰할 수 있습니다
2 이 프로젝트에 프리랜서들의 평균 입찰은 $43 USD입니다.
사용자 아바타
Hello sir/ma, I'm interested in taking this task up for you. I have extensive experience in the domains of Natural Language Processing, Image Recognition & Artificial Intelligence,Recommender Systems,Machine learning,Data Minning, C++, C#, NS3 simulation, Omnet++, Sumo simulation, Deep Learning, Computer Vision, AI text analysis model,and Reinforcement Learning. While working in the domains mentioned above, I have worked used frameworks like TensorFlow, Scikit-learn, PyTorch,STP and UDP, Caffe2, OpenCV, Keras, matplotlib, seaborn, fastai, Pycharm,NILM algorithms etc) I am also very familiar with classification and clustering algorithms such as SVM,FHMM, Combinatorial Optimization, HART 85 Algorithm, Maximum Likelihood Estimation, KNN, LDA, Fuzzy classification I’m honest, creative and a unique person to carry out your tasks given to me. Leaving your project on our hand is privileged; we'll make sure that the project is done in a perfect way and do our best until you were satisfied. I would love to discuss this project with you and meet your exact requirements. I am confident I can provide you with top-notch materials that will fit your needs. I'm proud of my work on being professional, of the highest quality and always delivered on time
$30 USD 2일에
4.1 (8 건의 리뷰)
4.5
4.5
사용자 아바타
Hi, I'm python programmer and I've experience using OpenCV in many projects. I think that you need to rearrange the ndarray so it will suitable to OpenCV Image. I hope I can help you to fix your code.
$55 USD 2일에
5.0 (8 건의 리뷰)
3.1
3.1

고객에 대한 정보

국기 (CHINA)
Yanji, China
5.0
2
9월 22, 2019부터 회원입니다

고객 확인

감사합니다! 무료 크레딧을 신청할 수 있는 링크를 이메일로 보내드렸습니다.
이메일을 보내는 동안 문제가 발생했습니다. 다시 시도해 주세요.
등록 사용자 전체 등록 건수(일자리)
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
미리 보기 화면을 준비 중...
위치 정보 관련 접근권이 허용되었습니다.
고객님의 로그인 세션이 만료되어, 자동으로 로그아웃 처리가 되었습니다. 다시 로그인하여 주십시오.