اطلاعیه

Collapse
No announcement yet.

تبدیل تصویر دوربین های ویدئویی مدار بسته به دیجیتال

Collapse
X
 
  • فیلتر
  • زمان
  • Show
Clear All
new posts

    تبدیل تصویر دوربین های ویدئویی مدار بسته به دیجیتال

    با عرض سلام خدمت دوستان عزیز!!!
    من در مورد تبدیل سیگنال دوربین های مدار بسته از آنالوگ به دیجیتال و نحوه فرمت مورد استفاده در آنها کنجکاو شده ام .
    آیا در این مورد کسی می تواند توضیحی دهد؟
    منتظر پیغام های شما هستم.
    ممنون .

    #2
    پاسخ : تبدیل تصویر دوربین های ویدئویی مدار بسته به دیجیتال

    دوستان سلام.
    من هم در این مورد یه مشکل دار :NO:م. من برای پروژم باید از لپ تاپ استفاده کنم، دوربینم خروجی آنالوگ داره، منم می خوام برای انتقال ویدئو به لپ تاپ از کارت کپچر اکسترنال (USB) استفاده کنم. مشکل من نحوه برقراری ارتباط بین کارت کپچر و matlab است، یعنی چه جوری تصاویری که کارت کپچر روی پورت USB قرار می ده رو وارد matlab کنم؟
    please save me & take bless :cry2:
    It's your attitude, not your aptitude,that makes your altitude

    << اللهم عجل لولیک الفرج >>

    دیدگاه


      #3
      پاسخ : تبدیل تصویر دوربین های ویدئویی مدار بسته به دیجیتال

      یعنی هیچ کس تا حالا در این مورد کار نکرده؟ :eek:
      اصلا کارت کپچر رو فعلا بزارید کنار، لااقل یکی بگه ویدئوهای وب کم هاتون رو چه جوری به صورت Real time وارد matlab می کنی و پردازش و ...؟
      Please :angry:
      It's your attitude, not your aptitude,that makes your altitude

      << اللهم عجل لولیک الفرج >>

      دیدگاه


        #4
        پاسخ : تبدیل تصویر دوربین های ویدئویی مدار بسته به دیجیتال

        mex setup

        دیدگاه


          #5
          پاسخ : تبدیل تصویر دوربین های ویدئویی مدار بسته به دیجیتال

          میشه لطفا بیشتر توضیح بدید. متاسفانه چیزی متوجه نشدم :sad:
          It's your attitude, not your aptitude,that makes your altitude

          << اللهم عجل لولیک الفرج >>

          دیدگاه


            #6
            پاسخ : تبدیل تصویر دوربین های ویدئویی مدار بسته به دیجیتال

            Image Acquisition Toolbox

            Step 1: Install Your Image Acquisition Device


            Follow the setup instructions that come with your image acquisition device. Setup typically involves Installing the frame grabber board in your computer. Installing any software drivers required by the device. These are supplied by the device vendor. Connecting a camera to a connector on the frame grabber board. Verifying that the camera is working properly by running the application software that came with the camera and viewing a live video stream.

            Generic Windows image acquisition devices, such as Webcams and digital video camcorders, typically do not require the installation of a frame grabber board. You connect these devices directly to your computer via a USB or FireWire port.

            After installing and configuring your image acquisition hardware, start MATLAB on your computer by double-clicking the icon on your desktop. You do not need to perform any special configuration of MATLAB to perform image acquisition.

            دیدگاه


              #7
              پاسخ : تبدیل تصویر دوربین های ویدئویی مدار بسته به دیجیتال



              tep 2: Retrieve Hardware Information


              In this step, you get several pieces of information that the toolbox needs to uniquely identify the image acquisition device you want to access. You use this information when you create an image acquisition object, described in Step 3: Create a Video Input Object. The following table lists this information. You use the imaqhwinfo function to retrieve each item.

              .

              Adaptor nameAn adaptor is the software that the toolbox uses to communicate with an image acquisition device via its device driver. The toolbox includes adaptors for certain vendors of image acquisition equipment and for particular classes of image acquisition devices. See Adaptor Name for more information.Device IDThe device ID is a number that the adaptor assigns to uniquely identify each image acquisition device with which it can communicate. See Device ID for more information.
              Note: Specifying the device ID is optional; the toolbox uses the first available device ID as the default.Video formatThe video format specifies the image resolution (width and height) and other aspects of the video stream. Image acquisition devices typically support multiple video formats. See Video Formats for more information.
              Note: Specifying the video format is optional; the toolbox uses one of the supported formats as the default.

              Adaptor Name


              To determine the name of the adaptor, enter the imaqhwinfo function at the MATLAB prompt without any arguments.
              imaqhwinfo

              ans =

              InstalledAdaptors: {'dcam' 'winvideo'}
              MATLABVersion: '7.0.4 (R14SP2)'
              ToolboxName: 'Image Acquisition Toolbox'
              ToolboxVersion: '1.8 (R14SP2)'



              In the data returned by imaqhwinfo, the InstalledAdaptors field lists the adaptors that are available on your computer. In this example, imaqhwinfo found two adaptors available on the computer: 'dcam' and 'winvideo'. The listing on your computer might contain only one adaptor name. Select the adaptor name that provides access to your image acquisition device. For more information, see Determining the Device Adaptor Name.

              Device ID


              To find the device ID of a particular image acquisition device, enter the imaqhwinfo function at the MATLAB prompt, specifying the name of the adaptor as the only argument. (You found the adaptor name in the first call to imaqhwinfo, described in Adaptor Name.)

              Note This example uses the DCAM adaptor. You should substitute the name of the adaptor you would like to use.
              info = imaqhwinfo('dcam&#039

              info =

              AdaptorDllName: [1x77 char]
              AdaptorDllVersion: '1.8 (R14SP2)'
              AdaptorName: 'dcam'
              DeviceIDs: {[1]}
              DeviceInfo: [1x1 struct]



              In the data returned, the DeviceIDs field is a cell array containing the device IDs of all the devices accessible through the specified adaptor.

              Getting More Information About a Device. To get more information about a particular device, view a structure in the DeviceInfo field. This field is a structure array where each structure describes a particular device. This can be helpful if there is more than one device listed in DeviceIDs. To view the device information for a particular adaptor, reference the structure in the array or enter the imaqhwinfo function at the MATLAB prompt, specifying the adaptor name and device ID as arguments.
              dev_info = imaqhwinfo('dcam',1)

              dev_info =

              DefaultFormat: 'F7_Y8_1024x768'
              DeviceFileSupported: 0
              DeviceName: 'XCD-X700 1.05'
              DeviceID: 1
              ObjectConstructor: 'videoinput('dcam', 1)'
              SupportedFormats: {'F7_Y8_1024x768' 'Y8_1024x768'}



              Video Formats


              You can optionally specify the video format of the video input object. To determine which video formats an image acquisition device supports, look in the SupportedFormats field of the DeviceInfo structure returned by the imaqhwinfo function. For more information, see Determining Supported Video Formats

              دیدگاه


                #8
                پاسخ : تبدیل تصویر دوربین های ویدئویی مدار بسته به دیجیتال



                Step 3: Create a Video Input Object


                In this step you create the video input object that the toolbox uses to represent the connection between MATLAB and an image acquisition device. Using the properties of a video input object, you can control many aspects of the image acquisition process.

                To create a video input object, use the videoinput function at the MATLAB prompt. The videoinput function accepts three arguments: the adaptor name, device ID, and video format. You retrieved this information in step 2. The adaptor name is the only required argument; the videoinput function can use defaults for the device ID and video format. This example specifies the device ID and video format. For more information about image acquisition objects, see Connecting to Hardware.
                vid = videoinput('dcam',1,'Y8_1024x768&#0 39



                Note Substitute the adaptor name of the image acquisition device available on your system. To find the default videoinput function syntax for a device, look at the ObjectConstructor field of the DeviceInfo structure returned by the imaqhwinfo function. For more information, see Getting More Information About a Device.

                Viewing the Video Input Object Summary


                To view a summary of the video input object you just created, enter the variable name (vid) at the MATLAB command prompt. The summary information displayed shows many of the characteristics of the object, such as the number of frames that will be captured with each trigger, the trigger type, and the current state of the object. You can use video input object properties to control many of these characteristics. See Step 5: Configure Object Properties (Optional) for more information.
                vid

                Summary of Video Input Object Using 'XCD-X700 1.05'.

                Acquisition Source(s): input1 is available.

                Acquisition Parameters: 'input1' is the current selected source.
                10 frames per trigger using the selected source.
                'Y8_1024x768' video data to be logged upon START.
                Grabbing first of every 1 frame(s).
                Log data to 'memory' on trigger.

                Trigger Parameters: 1 'immediate' trigger(s) on START.

                Status: Waiting for START.
                0 frames acquired since starting.
                0 frames available for GETDATA.





                Specifying the Video Format


                This example does not specify the video format of the video input object; it uses the default video format selected by the toolbox. The default video format is listed in the DefaultFormat field of the DeviceInfo structure. If you want to use a different video format, you must specify the format when you create the object. See Determining Supported Video Formats for more information.


                Step 2: Retrieve Hardware Information

                دیدگاه


                  #9
                  پاسخ : تبدیل تصویر دوربین های ویدئویی مدار بسته به دیجیتال

                  % Create video input object.
                  vid = videoinput('dcam',1,'Y8_1024x768&#0 39

                  % Set video input object properties for this application.
                  % Note that example uses both SET method and dot notation method.
                  set(vid,'TriggerRepeat',Inf);
                  vid.FrameGrabInterval = 5;

                  % Set value of a video source object property.
                  vid_src = getselectedsource(vid);
                  set(vid_src,'Tag','motion detection setup'

                  % Create a figure window.
                  figure;

                  % Start acquiring frames.
                  start(vid)

                  % Calculate difference image and display it.
                  while(vid.FramesAcquired<=100) % Stop after 100 frames
                  data = getdata(vid,2);
                  diff_im = imabsdiff(data(:,:,:,1),data(:,:,:,2));
                  imshow(diff_im);
                  end

                  stop(vid)

                  دیدگاه


                    #10
                    پاسخ : تبدیل تصویر دوربین های ویدئویی مدار بسته به دیجیتال

                    خیلی ممنون . متاسفانه به دلایلی الآن به matlab دسترسی ندارم :sad:. به همین دلیل هم نتونستم از Help برنامه استفاده کنم.
                    ولی حالا دیگه مشکلم حل شد :applause:
                    It's your attitude, not your aptitude,that makes your altitude

                    << اللهم عجل لولیک الفرج >>

                    دیدگاه


                      #11
                      پاسخ : تبدیل تصویر دوربین های ویدئویی مدار بسته به دیجیتال

                      سلام
                      دوستان کسی مطلبی در مورد تبدیل سیگنال آنالوگ تصویر به دیجیتال داره بذاره ممنون می شم

                      دیدگاه


                        #12
                        پاسخ : تبدیل تصویر دوربین های ویدئویی مدار بسته به دیجیتال

                        با خرید یه کارت کپچر مشکل حل میشه

                        دیدگاه


                          #13
                          پاسخ : تبدیل تصویر دوربین های ویدئویی مدار بسته به دیجیتال

                          هر چند Matlab ابر نرم افزار خوبیه ولی آویزون بودن یه نوت بوک از ربات یا وابسته بودن یک سامانه به یک PC چندان خوشایند نیست ، اساسا Matlab صرفا یک محیط آزمایشگاهی برای کارهای پژوهشی است و (البته همش به اعتقاد من) حتی در برنامه هایی که در زبان های همه منظوره سطح بالا مثل Delphi و مجموعه VS نوشته می شه و قراره روی یک PC اجرا بشه نمی شه به امکانات Matlab حتی در حات dll هم تکیه کرد (به خاطر سرعت پایین و دردسرهای ******** )چه برسه به پروژه های الکترونیکی که با Micro و FPGA قراره پیاده بشه !
                          پس به عنوان گام اول در این راستا بحتره بی خیال PC بشیم و بزاریم در همون حد Program میکروها و Config ،FPGA بیشتر در پروژه دخیل نشه! :twisted:

                          به عنوان گام اول باید وب کم USB رو رها کرده و حتی به فکر انتقال تصاویر از یک دوربین آنالوگ (بی سیم یا باسیم) به کارت کپچر هم نیافتیم ! کلا کامپیوتر نداریم موافقید ؟
                          واما را حل
                          گفته میشه و حتی دیده شده ! یک سری دوربین های دیجیتال به نام CMU وجود داره که اطلاعات تصویری رو به صورت دیجینال و توسط یک واسط سریال در اختیار قرار می ده مثلا RS232
                          نمونه خوبی از این کاربرد در کتاب "[glow=blue,2,300] اصول و راهنمای ساخت روبات با استفاده از میکروکنترلرهای PIC[/glow]" وجود دارد (از انتشارات کانون نشر علوم)
                          که بنابر نوشته آن غیر از در اخنیار نهادن داده های تصویری (که با اون هر کاری می شه کرد) امکانات دیگری به شرح زیر دارد (مخصوص علاقه مندان به مطلب که می خواهند از الگوریتم نویسی طفره رفته و پروژه ای لوگو وار را انجام دهند غافل از آنکه همه کار را توابع کتابخانه ای مطلب انجام میدهد! ) :
                          1- اشیاء رنگی که کاربر مشخص کرده دنبال میکند :applause:
                          2-مرکز اشیاء را می یابد :wow:
                          3-میانگین رنگ و داده های واریانس را جمع آوری کرده در اختیار قرار میدهد!
                          4- یک حالت دمو دارد که به صورت خودکار بر روی هدف قفل می شود و سرو موتور را برای تعقیب شی راهندازی می کند ! :angry:

                          و البته وضوح زیادی ندارد (143*80)
                          البته این وضوح کم برای شروع کار زیاد هم هست !
                          تنها مشکل من اینه که جایی رو در بازار داخلی سراغ ندارم که این ماژول رو ارائه بنماید!
                          اگر کسی سراغ داره ممنون می شم منم مطلع کنه ، موفق باشید!

                          دیدگاه

                          لطفا صبر کنید...
                          X