nikolaseu / neuvision

Structured Light based 3D scanner
GNU General Public License v3.0
287 stars 81 forks source link

configuration file #41

Open nesquik011 opened 5 years ago

nesquik011 commented 5 years ago

hello my friend did compile but the 3d scanner application didnt work may you help us to make it work please , thank you

nesquik011 commented 5 years ago

@nikolaseu hello i wonder did you fix the problem with configuration file ? is the software more stable now

dentx22 commented 5 years ago

compilation ok

needs the ini file I like camera I imagingsource dmk 23u236 https://www.theimagingsource.com/products/industrial-cameras/usb-3.0-monochrome/dmk23ux236/

nesquik011 commented 5 years ago

compilation ok

needs the ini file I like camera I imagingsource dmk 23u236 https://www.theimagingsource.com/products/industrial-cameras/usb-3.0-monochrome/dmk23ux236/

do you want the ini file of that camera ? i think there is something wrong with ini

nikolaseu commented 5 years ago

There's no plugin for imaging source cameras, so unless it works with some other plugin like OpenCV you will not be able to use it without writing some code. You can check with ZCameraViewer if it's detected or not. The ini file is just the configuration, if there's no plugin it will not work.

Genn4dental commented 4 years ago

version 0.2.0 i work camera in opencv create the ini file for me but when I run Z3DScanner crashes is something missing from the software? when debugging it tells me that the problem is ZStructuredLight patterns

dentx22 commented 4 years ago
if (m_opencvAttributeNames.empty()) {
    /// attribute id <-> name map
    m_opencvAttributeNames[cv::CAP_PROP_FRAME_WIDTH ] = "OpenCV::Frame::Width";
    m_opencvAttributeNames[cv::CAP_PROP_FRAME_HEIGHT] = "OpenCV::Frame::Height";
    m_opencvAttributeNames[cv::CAP_PROP_BRIGHTNESS  ] = "OpenCV::Brightness";
    m_opencvAttributeNames[cv::CAP_PROP_CONTRAST    ] = "OpenCV::Contrast";
    m_opencvAttributeNames[cv::CAP_PROP_SATURATION  ] = "OpenCV::Saturation";
    m_opencvAttributeNames[cv::CAP_PROP_HUE         ] = "OpenCV::Hue";
    m_opencvAttributeNames[cv::CAP_PROP_GAIN        ] = "OpenCV::Gain";
    m_opencvAttributeNames[cv::CAP_PROP_EXPOSURE    ] = "OpenCV::Exposure";
    m_opencvAttributeNames[cv::CAP_PROP_FPS         ] = "OpenCV::FPS";
}

/*/// try to get supported frame sizes
union {double prop; const char* name;} u;
u.prop = m_capture->get(cv::CAP_PROP_SUPPORTED_PREVIEW_SIZES_STRING);
// VideoCapture::get can return 0.0 or -1.0 if it doesn't support
// cv::CAP_PROP_SUPPORTED_PREVIEW_SIZES_STRING
if (u.prop != 0.0 && u.prop != -1.0) {
    qDebug() << "cv::CAP_PROP_SUPPORTED_PREVIEW_SIZES_STRING" << u.name;
} else */{
    m_frameSizes << QSize(320, 240)
                 << QSize(640, 480)
                 << QSize(640, 488)
                 << QSize(800, 600)
                 << QSize(848, 480)
                 << QSize(1280, 720)
                 << QSize(1280, 1024)

add << QSize(1600, 1200);

nesquik011 commented 4 years ago

@dentx22 thank you , i wonder what is the problem with the software @Genn4dental said the software doesnt work